Question: Write a Python program to accept item name, price, quantity, VAT category (C1, C2) for n number of items and display the bill as
Write a Python program to accept item name, price, quantity, VAT category (C1, C2) for n number of items and display the bill as shown in the sample output below. VAT is 0 for category C1 and 5% for category C2. The value of n should be accepted as input. All amounts should be printed with three decimal places. Sample output: Item Name Price Quantity VAT Amount Milk 1.500 2 0.000 3.000 Eggs 2.200 1 0.000 2.200 Chips 0.200 5 0.050 1.050 Mobile 100.000 1 5.000 105.000 Total VAT: RO 5.050 Total amount: RO 111.250 Include the following comments at the beginning of your code. Make sure that you replace and with your information.
Step by Step Solution
There are 3 Steps involved in it
Heres a Python program that accepts item details for n items and calculates the bill wi... View full answer
Get step-by-step solutions from verified subject matter experts
