Computer Science, asked by successverma098, 4 months ago

A motorbike showroom has announced the following discounts on the purchase of bikes, based

on the cost of bike purchased:

Cost of Motorbike (Rs)

Less than 36000

36001 to 50000

50001 to 75000

75001 and above

Discount (in percentage)

5%

10%

15%

20%

Write a program to input the cost of motorbike Compute and display the amount to be paid by the customer after availing the discount​

Answers

Answered by jai696
1

\huge\red{\mid{\fbox{\tt{Using\: Python\: 3}}\mid}}

def discount(cost):

if cost < 36000:

return cost - (cost * .05)

if 36001 <= cost <= 50000:

return cost - (cost * .1)

if 50001 <= cost <= 75000:

return cost - (cost * .15)

return cost - (cost * .2)

print("Amount:", discount((cost := float(input("cost: ")))))

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions