Computer Science, asked by dream11coderhappy, 1 month ago

A binary file “STOCK.DAT” has structure [Name, Price].
Write a user defined function CreateFile()to input data for a record and add to STOCK.DAT .
Write a function Billing( ) to read each record of a file and display Total Price of all the records in the binary file
“STOCK.DAT”

Answers

Answered by aryansinghji0301
1

Answer:

A binary file “STOCK.DAT” has structure [Name, Price].

Write a user defined function CreateFile()to input data for a record and add to STOCK.DAT .

Write a function Billing( ) to read each record of a file and display Total Price of all the records in the binary file

“STOCK.DAT”

Answered by kapilchavhan223
4

Answer:

binary file “Book.dat” has structure [BookNo, Book_Name, Author, Price].

i. Write a user defined function CreateFile() to input data for a record and add to Book.dat .

ii. Write a function CountRec(Author) in Python which accepts the Author name as parameter and count and return number of books by the given Author are stored in the binary file “Book.d

Hope it's helps

Similar questions