Python Programming Project
This is a simple Python-based supermarket billing system that allows customers to enter their details, select products, and receive a bill with applied discounts based on the total amount. The system keeps track of products, quantities, and prices, and provides a summary at the end.
- Customer information entry (Name, Age, Phone number)
- Product selection from a predefined list (Apple, Chips, Burger, Pepsi)
- Quantity input for each selected product
- Bill calculation with applied discount based on the total amount
- Option to add multiple customers and generate separate bills for each
- Displays a clear summary of the bill including discount percentage and total amount to be paid.
- Python 3.14
- Check the python version run the following Command:
python --version
- Clone this repository or download the Python file.
- Open the terminal or command prompt.
- Navigate to the directory where the Python file is saved.
- Run the following command:
python supermarket_billing_system.ipynb
- Customer Information: The system asks the customer for their name, age, and phone number.
- Product List: A list of products (Apple, Chips, Burger, and Pepsi) with corresponding prices is displayed.
- Cart Update: The user can select products and enter the quantity they wish to purchase. The total amount is calculated as products are added to the cart.
- Discount Application: Depending on the total amount spent, a discount is applied:
- Amount <= 500: No discount
- Amount between 501 and 600: 5% discount
- Amount between 601 and 800: 10% discount
- Amount > 800: 15% discount
- Bill Summary: At the end of the purchase, a summary is displayed, showing customer details, the products purchased, discount applied, and the total amount to be paid.
- Repeat for Multiple Customers: After generating the bill for a customer, the system allows you to add more customers and generate separate bills.