The Amrita Food Ordering System is a Java Swing desktop application that simulates a simple restaurant ordering workflow. It allows customers to select menu items, specify quantities, and place orders while automatically calculating discounts and generating a detailed bill. Administrators can log in to view daily revenue statistics.
- Interactive GUI built with Java Swing.
- Dynamic image carousel showcasing screenshots.
- Menu selection with quantity spinners for each item.
- Automatic discount calculation (5%, 10%, 20% based on total).
- Bill generation saved as a timestamped text file.
- Admin login to view and accumulate daily revenue.
- Revenue persistence across sessions.
- Prerequisites
- Java Development Kit (JDK) 8 or higher.
- An IDE or text editor (e.g., IntelliJ IDEA, VS Code).
- Clone the repository (or copy the project folder to your machine).
- Compile the source code:
javac AmritaFoodOrderingSystem.java
- Run the application:
java AmritaFoodOrderingSystem
-
Customer Flow:
- Enter the customer's name.
- Select desired menu items and quantities.
- Click Place Order to see the order summary with discounts.
- A bill file is generated under the
revenue/folder.
-
Admin Flow:
- Click Admin Login and enter the password (
admin123). - View today's total revenue and cumulative net revenue.
- Click Admin Login and enter the password (
Contributions are welcome! Feel free to fork the repository, make improvements, and submit a pull request. Please follow these guidelines:
- Keep code style consistent (use proper indentation and naming conventions).
- Update the README if you add new features.
- Ensure the application builds and runs on a fresh JDK installation.
This project is licensed under the MIT License – see the LICENSE file for details.



