Customers Receive One Five Possible Discount Based Order Order 900 Earns Discount 15 Order Q37080820

The customers can receive one of five possible discount based onthe their order. An order of 900 or more earns a discount of 15%,”, an order 800 but less than 900 earns a 10% discount, an order inthe range 700 to 799 earns a discount 5%, an order 600 but lessthan 700 earns a discount of 2%, and any order less than 600 has nodiscount. Input the order from the user and display the discountbased on the order. Write a Python program to solve theproblem.


Solution


amount = float(input(“Enter order amount: “))discount = 0if(amount>=900): discount = amount*0.15elif(amount>=800):

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.