Computer Science, asked by SupriyaSahoo, 1 year ago

write a basic programming to enter the cost price. calculate the selling price and discount amount.

Answers

Answered by MH7
0

MS excel is the best application to enter data calculating price and discount amount


SupriyaSahoo: it is a class 6 question
SupriyaSahoo: my question is how to write programming
Answered by sumadevasia
0

Answer:

The discount rates are:

   Amount          Discount

   0-5000          5%

   5000-15000      12%

   15000-25000     20%

   above 25000     30%

# input sale amount

amt = int(input("Enter Sale Amount: "))

# checking conditions and calculating discount

if(amt>0):

   if amt<=5000:

      disc = amt*0.05

   elif amt<=15000:

       disc=amt*0.12

   elif amt<=25000:

       disc=0.2 * amt

   else:

        disc=0.3 * amt

   print("Discount : ",disc)

   print("Net Pay  : ",amt-disc)

else:

   print("Invalid Amount")

Mark me as the BRAINLIEST!!!

Similar questions