Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A hook shop maintains the inventory of books that are being sold at the shop. The list inclades details soch as author, title, price, publisher
A hook shop maintains the inventory of books that are being sold at the shop. The list inclades details soch as author, title, price, publisher and stock powition. Whenever a customer wans a a book, the sales person inputs the title and author and the system scarches the list and displays whether it is avalable or not. If it is not. an appropriate message is displayed. If if is Then the system displays the book details end requests for the number of copies required. If the requested copies are available, the total cost of the requested copies is displayed; otherwise the message "Required copoes not in stock" is displayed.
Design a system using a class called books with suitable member functions and consiructors, fise new operator in constructors to allocate memory space required.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started