USING IF-ELSE IF - ELSE, WRITE A PROGRAM TO INPUT THE PRICE OF AN ITEM
AND CALCULATE THE DISCOUNT AND DISCOUNTED PRICE THAT IS OFFERED
TO THE CUSTOMER.
ITEM
DISCOUNT%
UPTO RS.1000
15%
1001 TO 2000
20%
2001 TO 5000
40%
>5000
50%
DISCOUNTED PRICE = PRICE OF ITEM - DISCOUNT
Answers
Answered by
2
Answer:
all_items_price = int(input("please enter the total price"))
if all_items_price <= 1000:
print("You get an 15% discount.")
elif >2000 and = 5000:
print("You get an 20% discount.")
elif all_items_price > 5000:
print("You get an 50% discount.")
Similar questions