Question: Need help with the following C++ assignment: Insert (50 pts) Modify the provided code to create a program that reads in book information into a

Need help with the following C++ assignment:
 Need help with the following C++ assignment: Insert (50 pts) Modify

Insert (50 pts) Modify the provided code to create a program that reads in book information into a Book structure for the local library and then calculate some information for them See Somple pages, and a number of copies. Store the items into an array of Book structure that hold 3 elements. The program should output the total number of books, the name of 4. Output below). Each Book should have a title, publishing year, number of the oldest book, and the name of book with the largest number of pages Book data should be stored in a struct variable of the type Book, which has four title (string) publishing year (integer) number of pages (integer) number of copies (integer) There are 3 books. Use an array with 3 elements of the data type Book. 1. Read the item information into the structure array from the console. 2. Calculate the total number of copies of all 3 books 3. Find the index of the oldest book (based on publishing year). 4. Find the index of longest book (based on number of pages). Sanple Output: Book #1 Enter title: Hatchet Enter publishing year: 2000 Enter number of pages: 208 Enter number of copies: 150 Book #2 Enter title: Catch-22 Enter publishing year: 1961 Enter number of pages:544 Enter number of copies: 64 Book #3 Enter title: Hamlet Enter publishing year: 1602 Enter number of pages: 342 Enter number of copies: 113 Total number of books Oldest book Longest book 327 : Hamlet : Catch-22 WRITE your name in a block or inline comment at the top of your program. PRINT and attach a copy of your source code and output to this worksheet. UPLOAD your source code as lab11.cpp to my website

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!