Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A book shop maintains the inventory of books that are being sold at the shop. The list includes details such as author, title, price, and

A book shop maintains the inventory of books that are being sold at the shop. The list includes details such as author, title, price, and stock position. Whenever a customer wants a book, he informs the salesperson. The salesperson inputs the title and author, and the system searches the list and displays whether it is available or not; if it is not, an appropriate message is displayed. If it is, then the system displays the book details and requests for the number of copies requested. If the requested number is less than or equal to the stock, the total cost of the requested copies is displayed; otherwise, the message "Required copies not in stock" is displayed. Write an interactive C++ program using a class called book with suitable member functions and constructors.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions

Question

a. Did you express your anger verbally? Physically?

Answered: 1 week ago