Question: Write a program that reads in book information into a Book structure for the local library and then calculate some Information for them (See Sample
Write a program that reads in book information into a Book structure for the local library and then calculate some Information for them (See Sample Output below). Each Book should have a title, publishing year, number of page*, and a number of copies. Store the items into an array of 3 structures. The program should output the total number of books, the name of the oldest book, and the name of book with the longest number of pages. Book data should be stored In a struct variable of the type Book, which has four components: There are 3 books. Use an array with 3 elements of the data type Book. Read the item information into the structure array from the console. Calculate the total number of copies of all 3 books. Find the index of the oldest book (based on publishing year). Find the index of longest book (based on number of pages)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
