Question: Write a c++ program that simulates a Book store. A user has two options of books to buy, either science fiction or horror books. Both

Write a c++ program that simulates a Book store. A user has two options of books to buy, either science fiction or horror books. Both options have their own books along with their prices. The user can order more than once as long as the program is running. When the user pays for the book he chooses, a descriptive message is printed to him, explaining if he paid less, more or exact amount of money.

1. Create two string arrays for science fiction and horror books.

2. create two double arrays for science fiction and horror books prices.

3. create function void pay(double paid, double actual), which calculates if the user should pay more or less money or if he paid exactly the actual amount.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!