Computer Science, asked by tanviharendra, 1 month ago

Write a python program to make a discount calculator. Use the details below: (11th grade cbse level)

DAY : Sat,Sun Mon Tue,wed Thur,Fri
DISCOUNT% : 0 15 5 10

SAMPLE OUTPUT(how output should be) :
Enter day : Fri
Enter amount : 100
Discount Amount : 10
Payable amount : 90


—————PLEASE GIVE ME PROPER ANSWER—————

Answers

Answered by rehanna0911
2

Answer:

Use the co de below:

day = input("Enter Day : ")

amount = int(input({"Enter Amount : "))

discoun = (10/100) * amount

finale = amount - discoun

print("Discoun Amount : " + str(discoun) + "\n")

print("Payable Amount : " + str(finale))

Logic:

==> We stored everything suitably in variables.

==> We then concatenated and printed the output using print function.

________________

Hope it helps you!!

:)

Similar questions