Professional university library maintains an inventory of books. The list includes details like Author, price, title, publisher, acc_no, and number of copies of each book.
Whenever new books are purchased the librarian adds details into the database. The chief librarian occasionally requests for a list of all books in the database.
Required:
Assuming the database to be an array of ten (10) books, construct a class called book with suitable data members and member functions to:
(i) Insert a new book record into the database
(ii) Display a list of all books in the database
(ii) Write a main function to test the program