C++ Serendipity Booksellers College Project Part 3 – Expressions and Interactivity

Share it with your friends Like

Thanks! Share it with your friends!

Close

Serendipity Booksellers Software Development Project— Part 3: A Problem-Solving Exercise

1. The Main Menu
Modify the mainmenu.cpp program so it lets the user enter a choice from the menu. The choice will be a number in the range of 1 through 4, so it can be stored in either an int or char variable.

2. The Cashier Module
You are ready to add some of the point-of-sale functionality to the project. Currently, the cashier.cpp program displays a simulated sales slip without any sale information. Modify this program so that prior to displaying the simulated sales slip, it asks for the following data:
• The date. Expect the user to enter a date in the form MM/DD/YY. This should be entered as a string and stored in a string object variable.
• The quantity of the book being purchased: Store this number in an integer variable.
• The ISBN number of the book being purchased. The ISBN number is a string that contains numbers and hyphens. Use a string object variable to store it.
• The title of the book. Store the book title in a string object variable.
• The unit price of the book. Store this number in a floating-point variable.

Once the data is entered, the program should calculate the merchandise total (multiply quantity by price) and a 6 percent sales tax. The program should then display a simulated sales slip

The dollar amounts should all be displayed in fields of six spaces with two decimal places of precision. They should always be displayed in fixed-point notation and the decimal point should always appear.

3. The Inventory Database Menu
Modify the invmenu.cpp program so it lets the user enter a choice from the menu. The choice will be a number in the range 1 through 5, so it can be stored in either an int or char variable.

4. The Reports Menu
Modify the reports.cpp program so it lets the user enter a choice from the menu. The choice will be a number in the range 1 through 7, so it can be stored in either an int or char variable.

DOWNLOAD FILES: Serendipity3

Comments

Write a comment

*