1. Write a function CreateFile() to input n number of records in a binary file "Book.Dat" with a structure [BookNo, BookName, Author, Price], where n is given by the user.
2. Write a function counting() that accepts an argument price. The function should print the total number of books that cost more than the value of the argument passed. Use the file Book.dat created in the previous program.
3.Write a function named Update_book() that will update the file 'Book.dat' created in the previous program. The function will change cost only. The new cost of the book will be given by the user.
4.Write a function Filter_book() that will copy the information about the books by the given Author from 'Book.dat' to another file 'Book_new.dat'. After copying delete Book.dat. The name of the author will be passed as an argument to the function.
Answers
Answered by
0
Answer:
please mark me as branist plzsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
Similar questions