Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Database Creation & Search In this Project you will create a database using stru

ID: 3631651 • Letter: D

Question

Database Creation & Search
In this Project you will create a database using structures and write several functions to search different types of data on this database.
The application data is text data comprising al the information about books.In other words, you are going to create a library of books!!
(A) Create a global database for at least 15 books– array of structures with the following information.
- Title of the book
- Author name (format: Firstname X. lastname)
- Publisher information(McGraw-Hill, etc)
(B) Subject category (4 letter code or a 3 letter code – FIC, NFIC, HIS,GEO, MAT, PHY, CHEM, ZOO, BIO, COM, COMM, etc)
(C) Book index (format: Q123.45FIC, S234.66NFIC, H545.11HIS)
(D) Number of pages in a book
(E) Shelf at which this book must be placed in the library (“K-M” “A-C”,“T-V”, etc);
(F) Book is for circulation or for reference
(G) Price
With the above attributes, implement the following search functions. In all these functions, a NIL must be displayed if no such book exist.

(I) A simple function to search by using Author’s name (you may ask the user to type in either first or last names); Display title of the book, author’s name, publisher’s information, information on where to locate this book in the library (from part (E)), information from part (F); It may be possible that there may be more than one book by the same author and you should display all of them.
(II) A simple function to search by using title of the book (or you may ask the user to type in at least 1 or two key words of the title);
Display the results as described in (I) above.
(III) A function to search “author + subject category” information;
Display all choices;
(IV) Argue how you will capture if a book is “issued” to a user or not;
Allow the user to interact with the system by looping continuously.
He/She will see his/her search results and then must be allowed to search further again. Finally, he/she must be asked to confirm an “exit” to stop interacting with the system.
You may choose to read in all the data to create the database from a text file or manually enter

Explanation / Answer

Check your inbox :)