Write a Python program that does the following Asks the user to enter the order. If the order is greater than $1000, there is 17% discount, if the order is greater than $800 and less or equal to $1000, the discount is 13%, if the order is less or equal to $ 800 but greater than $ 500, the discount is 9%, otherwise the discount is 5%. The tax percent is 13%. The program calculates the total invoice of the customer after the appropriate discount and the tax amount are applied. The program prints out the customer name (entered by the user), the discounted amount, the tax amount and the total invoice. The program asks if the user wants to continue using the application with a new order (y/n). Sample run: Please, enter the name of the customer: John Smith Please, enter the total of your order: $1100 Customer name: John Smith The order amount: $1100 The discounted amount: $187 The total tax: $118.69 Total invoice: $1031.69 Do you want to continue with a new order?(y/n):[user enters y or n here]
PLEASE COMMENT CODE
Write a Python program that does the following
Asks the user to enter the order. If the order is greater than $1000, there is 17% discount, if the order is greater than $800 and less or equal to $1000, the discount is 13%, if the order is less or equal to $ 800 but greater than $ 500, the discount is 9%, otherwise the discount is 5%.
The tax percent is 13%. The program calculates the total invoice of the customer after the appropriate discount and the tax amount are applied. The program prints out the customer name (entered by the user), the discounted amount, the tax amount and the total invoice.
The program asks if the user wants to continue using the application with a new order (y/n).
Sample run:
Please, enter the name of the customer: John Smith
Please, enter the total of your order: $1100
Customer name: John Smith
The order amount: $1100
The discounted amount: $187
The total tax: $118.69
Total invoice: $1031.69
Do you want to continue with a new order?(y/n):[user enters y or n here]
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images