Problem

The Cashier Module You are ready to add some of the point-of-sale functionality to the...

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/DEINY. This should be entered as a string and stored in a char array.

• 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, contains numbers and hyphens. Use a char array to store it.

• The title of the book. Store the book title in a char array.

• The unit price of the book. Store this number in a float variable.

Here is an example of what the screen might look like:

Once this data is entered, the program should calculate the merchandise total (m ply quantity by price), and a 6 percent sales tax. The program should then display simulated sales slip. Here is an example:

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

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT