For Programming Assignment 2 you will winite a program to ma
For Programming Assignment 2 you will winite a program to manage a bookstore. This will again be a menu driven system. The following is your menu: 1: Read inventory from file 2: Add an entry 3: Delete an entry Update an entry 5 Sort inventory 6. 4 Write inventory to file and exit Your program ill be function-based and use a structured data type (struct) The struct called Book will have the following members string isbn string title string author string publisher int quantity double price Each menu tem will make a call to the corresponding function (Le, for case 1: you a call to the corresponding function (Le·for case 1 you will call a function that reads the mentory rom a ne All of your books (structs of type Book) will partialily tilied array you will need to have a second variable that keeps track of the number of elements in your array, say size be stored in a partially filled array of size MAX_SIZE, which will be set to 100 Since it is a The tollowing are the detaits tor each of your menu options (Names are suggestions only but are descriptive) 1 readinventory-You will read the inventory from a file You will read the inventory from a tie called inventory.txt s? which is provided tr you (i suggest you back up ins in option 6) Notice that the data is stored in the same order as sted above in the struct and it is tie since you will be overwriting newine delimited 2 addinventory-Add an entry will prompt the user for each piece of information a
Solution
// Thums up Please
