0% found this document useful (0 votes)
9 views1 page

Bill 2

The document takes user input for quantity, value, discount percentage and tax, calculates the amount, discount amount, subtotal, tax amount and total amount to be paid and prints the bill.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Bill 2

The document takes user input for quantity, value, discount percentage and tax, calculates the amount, discount amount, subtotal, tax amount and total amount to be paid and prints the bill.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

qty=float(input("Enter the quantity of item sold:"))

val=float(input("Enter the value of item:"))


discount=float(input("Enter the discount percentage:"))
tax=float(input("Enter the tax:"))
amt=qty*val
discount_amt=(amt*discount)/100
sub_total=(amt*discount_amt)
tax_amt=(sub_total*tax)/100
total_amt=sub_total+tax_amt
print("**********BILL***********")
print("Quantity sold :",qty)
print("Price per item :",val)
print("Amount :",amt)
print("Discount :",discount_amt)
print("discounted total :",sub_total)
print("Tax :",tax_amt)
print("Total amount to be paid :",total_amt)

You might also like