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: Greet the user, tell them what store they are at and ask for their name, phone number, and postal code.
Present the user with a list of 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 if they don't want any
Ask them for the amount of the discount they get from to We'll just assume they will be honest about this :-)
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
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
