A console-based Java application that automates the pizza billing process using Core Java and Object-Oriented Programming principles.
Pizzamania is a pizza outlet that wants to automate its billing system.
This application allows customers to select a pizza type, choose extra cheese or toppings (if applicable), opt for takeaway, and generate a detailed final bill.
| Pizza Type | Price (βΉ) |
|---|---|
| Veg Pizza | 300 |
| Non-Veg Pizza | 400 |
| Deluxe Veg Pizza | 550 |
| Deluxe Non-Veg Pizza | 650 |
| Extra Cheese | 100 |
| Extra Toppings | 150 |
| Take Away Charges | 20 |
πΉ Deluxe pizzas already include extra cheese and extra toppings.
- Menu-driven console application
- Four types of pizzas supported
- Extra cheese and toppings options
- Deluxe pizzas skip extra options automatically
- Takeaway packaging charges
- Detailed bill generation
- Object-Oriented Programming implementation
- Java (Core Java)
- IntelliJ IDEA
- Git & GitHub
PizzaBillGenerator βββ src βββ Main.java βββ Pizza.java
- Open the project in IntelliJ IDEA
- Open
Main.java - Click the βΆ Run button or press
Shift + F10 - Follow the instructions shown in the console
Welcome to PIZZAMANIA π
Veg Pizza
Non-Veg Pizza
Deluxe Veg Pizza
Deluxe Non-Veg Pizza Choose Pizza Type: 1 Add Extra Cheese? (y/n): y Add Extra Toppings? (y/n): n Take Away? (y/n): y
-------- BILL DETAILS -------- Base Price: βΉ300 Extra Cheese: βΉ100 Take Away Charges: βΉ20
Total Amount: βΉ420 Thank you! Visit Again π
- Understanding of Java classes and objects
- Use of constructors and methods
- Handling user input using Scanner
- Applying real-world billing logic
- Using conditional statements effectively
Omraj Shinde
2nd Year Computer Engineering Student