Computer Science, asked by praveshchawda11, 3 months ago

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 ayedubey
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