1) Write a program in Python for giving discount on toy shop.
There is a 'car toy' shop and the price of a that car toy is 2000.
Shopkeeper is giving discount to customer on the basis of following
condition-
1) Discount to first 50 customer is 50%
2) Discount to next 200 customer is 35%
3) Discount to next 300 customer is 25%
4) after that discount will be 10% for all.
Find the Final Amount recelved by Shopkeeper after selling Toy Car to
following number of customer.
a) 30.
b) 100.
c) 400. 5) 800
Answers
Answered by
0
toy=int(input("Enter the amount of toys sold: "))
if toy<=50:
final_price=2000-((50/100)*2000)
elif 50<toy<=200:
final_price=2000-((35/100)*2000)
elif 200<toy<=300:
final_price=2000-((25/100)*2000)
else:
final_price=2000-((10/2000)*100)
print(f"Final amount is {final_price}")
Similar questions
English,
1 month ago
Science,
3 months ago
Physics,
9 months ago
Social Sciences,
9 months ago
English,
9 months ago