Write a python class to bill generate the bill of items purchased
Answers
Answer:
Here is ur answer :
The user is to enter these :
Enter the quantity of item sold :
Enter the value of item :
Enter the the discount percentage :
Enter the tax :
Formulaes: amountt = quantity X value
discount amount = amount X discount/100
subtotal = amount – discount amount
tax amount = subtotal X tax/100
total amount = subtotal + tax amount
The output should look like this:
>>>
Enter the quantity of item sold : 80
Enter the value of item : 100
Enter the the discount percentage : 10
Enter the tax : 14
*********BILL**********
Quantity sold : 80.00
Price per item : 100.00
-----------------
Amount : 8,000.00
Discount : - 800.00
-----------------
Discounted Total : 7,200.00
Tax : + 1,008.00
-----------------
Total amount to be paid $ 8,208.00
>>>