Question: Write a menu driven program in Python that depicts the following library operations. There should be a book class with instance variables (price, author and
Write a menu driven program in Python that depicts the following library operations. There should be a book class with instance variables (price, author and any other attributes which are suitable).The menu options should be:
1. Add book information
2. Display book information
3. List all books of given author
4. Return the sum, average, maximum and minimum of book prices stored in your file.
6. Exit
Each menu should call separate function to perform an operation. For option 1, 2 and 3, you must use file handling.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
