[Solved] : Question 139090

Create a Book class with data members book title, author name, price, edition. You are required to implement the following functions using stack data structure.
Constructor – for initializing the default values of a book
setData( ) – for setting the data in the data members from the user
isEmpty( ) – for checking whether stack of books is empty
isFull( ) – for checking whether stack of books is full
push(Book )
pop( ) – for removing a book from the stack
reverseStack( ) .
searchBook( ) – for searching book by name or author. It asks the user to enter the type of search he/she wants i.e. by Book name or by author name.


Expert Answer


Answer to : Question 139090

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?