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.
1
Expert's answer
2020-10-19T08:12:32-0400
Dear AHSAN, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment