Question: Create a program for a retailer that creates an invoice after a dialog with a customer. Your program should: 1 . Greet the user, tell

Create a program for a retailer that creates an invoice after a dialog with a customer.
Your program should: 1. Greet the user, tell them what store they are at, and ask for their name, phone number, and postal code.
2. Present the user with a list of 5 different items for sale in your store one at a time, For each item tell them the price and ask them how many they want (they can say 0 if they don't want any).
3. Ask them for the amount of the discount they get (from 0% to 100%). We'll just assume they will be honest about this :-)
4. Then present the user with a receipt. The receipt should have the following information on it:
a. The name, phone number, and postal code of the customer
b. The name, address, and phone number of the store.
c. A line for each item with the name of the item, the quantity the customer wants, the price of each item, and the total price. All prices must be rounded to two decimal places.
d. A subtotal that adds up all the prices.
e. The amount of HST in dollars (HST is currently 13%).
f. The total with HST on a new line.
g. The amount of the discount in dollars.
h. The final price.

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 Programming Questions!