write a program in Python to accept the quantity and rate of three different items bought from a store then show the followinga,) the total amount of purchaseb)discount calculated at the rate of 22 % of total amount 3)the net amount to be paid after discount
Answers
choice = "Yes"
while choice == "Yes":
a = int(input("Enter the quantity of item(s) bought: "))
ap = float(input("Enter the rate of the item: "))
print()
b = int(input("Enter the quantity of item(s) bought: "))
bp = float(input("Enter the rate of the item: "))
print()
c = int(input("Enter the quantity of item(s) bought: "))
cp = int(input("Enter the rate of the item: "))
print()
tota = a*ap
totb = b*bp
totc = c*cp
total = tota + totb + totc
print(total, "is your total purchase amount.")
print("You will be receiving a discount of 22%.")
disc = total -(0.22*total)
print(disc, "is your net purchase.")
print("Thank you for shopping with us!")
print()
choice = input("Next customer? [Yes/No]: ")
Answer:
nahj Pata ok so i told it
GO gyi