You have a small collection of children books and like to maintain them on your
ID: 3639651 • Letter: Y
Question
You have a small collection of children books and like to maintain them on your book shelf.Program Specifications
Write a program that will do the following:
1. It must be adequately commented.
2. It must have variables that are appropriately named.
3. It must have a function to adequately prompt the user to perform the following action by printing the following
menu.
a. Add a new book
b. Print the author and ISBN for a single title
c. Print the entire bookshelf
d. Quit
4. It must have a function to
a. Read a small library collection file stored in myBooks.dat
b. Store the library collection data in an array called bookShelf
5. It must have a function to add a book.
6. It must have a function to print the author and ISBN for a single title specified by the user to common input.
bookShelf: an Array of bookType
bookType: a data type of a single book with
information of title, author, ISBN, etc.7. It must have a function to print any action taken to a “log file” (i.e. if a book is added, then an appropriate
comment line should be added to the log file).
8. It must make use of two additional functions not specified above to perform necessary steps within the program.
Hints:
1. Each book is stored as a struct called bookType which includes the following information:
title: string
isbn: string
author: string
publisher: string
price: double
publishDate: dateType
purchaseDate: dateType
2. The struct called dateType given in the above struct bookType is represented as follows:
month: int
day: int
year: int
3. Review the information provided in the data file myBooks.dat to understand how the data is arranged so you
can program the function for reading in the data correctly.
4. The bookShelf is an array of bookType struct.
THis is what i have so far . .please help