This project simulates a simple cafe menu system, where users can choose coffee types, view ingredients, and manage daily/weekly revenue. The system calculates the price based on the coffee size and records sales in an SQLite database.
- Coffee Menu: Includes different types of coffee like Espresso, Americano, Latte, etc., with their ingredients and prices.
- Daily and Weekly Revenue: Tracks daily sales and calculates weekly revenue.
- Database Integration: Uses SQLite to store sales data.
- Python 3.x: Ensure Python 3.x is installed.
- SQLite3: Comes with Python by default, no separate installation needed.
- Clone the repository or download the project files:
git clone https://github.com/yasinkrcm/Cafe-Menu-With-python.git
- Navigate to the project directory:
cd Cafe-Menu-With-python
- Run the program:
python cafeMenu.py
- Database Creation: The program will automatically create a
Cafe.db
SQLite database if it doesn't exist.
- Python 3.x (comes with SQLite3 built-in)
Cafe-Menu-With-python/
│
├── cafeMenu.py # Main program
├── dataBaseConnection.py # Database connection and functions
├── BaseStructure.py # Coffee class and revenue handling
├── Cafe.db # SQLite database for storing sales data
└── README.md # Project documentation
- Coffee Menu: Users can view and choose from various coffee types, and see their ingredients and prices.
- Daily Revenue: Users can track the daily sales for each coffee and calculate total sales.
- Weekly Revenue: The system calculates and displays the weekly revenue.
cafeMenu.py
: The main script that runs the program. It contains the menu, processes customer choices, and interacts with the database.dataBaseConnection.py
: This file handles all database-related operations, such as creating tables, inserting data, and fetching daily/weekly revenue.BaseStructure.py
: Contains classes likeCoffee
andRevenue
that define the coffee menu and manage sales calculations.
This project is not licensed and can be freely used and modified.
For more details, feel free to reach out or contribute to the repository.