Projects Detail - Class XI ( 2024-25)
Projects Detail - Class XI ( 2024-25)
1. The program will start with an infinite loop .This loop continues running until the user
decides to exit by pressing ‘0’.
2. It greets the user and displays a menu of payment methods: Cash, UPI, and Card.
3. It prompts the user to enter the name and address of the customer.
4. The user is asked to select the payment method by entering a number (1 for Cash, 2 for
UPI, 3 for Card).
5. The program then asks for the number of items the customer has purchased.
6. It creates an empty list called items to store item names and prices and initializes
a total_price variable to keep track of the total cost.
7. Inside a for loop, the program asks the user for the name and price of each item and adds
them to the items It also updates the total_price with the cost of each item.
8. Depending on the chosen payment method, the program calculates a discount: 5% for
Cash, 10% for UPI, and 7% for Card.
9. The program asks if the customer wants a carry bag and, if so, charges an additional Rs.
10 for it.
10. It calculates the GST (Goods and Services Tax) at a rate of 18% on the total price after
the discount.
11. It calculates the final total price with GST, including the discount and carry bag cost.
12. The program then displays an invoice with the customer’s name, address, payment
method, discount, list of items and their prices, total price without GST, GST, carry bag
cost, and the total price with GST.
After displaying the invoice, it asks the user if they want to enter another entry or exit the
program. If the user enters ‘0’, the loop will exit, and the program will terminate.