A Windows Forms application built with VB.NET that simulates a pizza ordering system, allowing customers to customize and place pizza orders with real-time cost calculation.
PizzaShop2 is a desktop GUI application developed in Visual Basic .NET using Windows Forms. It provides an interactive interface for selecting pizza size, base type, extra toppings, and a supreme option — then calculates the total cost including 6% tax.
- Pizza Size Selection — Choose from Small, Medium, or Large using radio buttons
- Base Pizza Selection — Choose between Plain or Sauce (mutually exclusive checkboxes)
- Extra Toppings — Add individual toppings with size-based pricing
- Supreme Pizza Option — Locks out individual toppings; applies a fixed premium price
- Auto Cost Calculation — Calculates pizza cost, 6% tax, and total on order placement
- Input Validation — Sauce base adds a flat $2 charge; Supreme disables topping selection
| Size | Base Price | Supreme Price |
|---|---|---|
| Small | $10.00 | $15.00 |
| Medium | $12.00 | $21.00 |
| Large | $15.00 | $27.00 |
| Size | Topping Cost |
|---|---|
| Small | $1.00 |
| Medium | $1.50 |
| Large | $2.25 |
Available toppings: Mushroom, Sausage, Onions, Green Pepper
| Item | Charge |
|---|---|
| Sauce Base | +$2.00 |
| Tax | 6% |
- Select a pizza size — Small, Medium, or Large
- Choose a base — Plain (no extra charge) or Sauce (+$2.00)
- Add toppings — Check any combination of Mushroom, Sausage, Onions, or Green Pepper
- OR select Supreme — Automatically disables and clears individual toppings; applies supreme pricing
- Click Place Order to calculate and display:
- Pizza Cost
- Tax (6%)
- Total Amount
- Click Exit to close the application
PizzaShop2/
│
├── Form1.vb # Main form logic (event handlers & calculations)
├── Form1.vb [Design] # Windows Forms UI designer
├── ApplicationEvents.vb # Application-level event handling
├── App.config # Application configuration
└── My Project/ # Project settings and resources
| Control Name | Type | Purpose |
|---|---|---|
rdoSmall |
RadioButton | Select Small pizza |
rdoMedium |
RadioButton | Select Medium pizza |
rdoLarge |
RadioButton | Select Large pizza |
chkPlain |
CheckBox | Select Plain base |
chkSauce |
CheckBox | Select Sauce base (+$2) |
chkMushroom |
CheckBox | Add Mushroom topping |
chkSausage |
CheckBox | Add Sausage topping |
chkOnions |
CheckBox | Add Onions topping |
chkGreenPepper |
CheckBox | Add Green Pepper topping |
chkSupreme |
CheckBox | Select Supreme pizza (locks toppings) |
btnOrder |
Button | Calculate and display order cost |
btnExit |
Button | Close the application |
lblCost |
Label | Displays pizza cost |
lblTax |
Label | Displays tax amount |
lblTotal |
Label | Displays total amount |
- IDE: Visual Studio 2019 or later
- Framework: .NET Framework 4.x (Windows Forms)
- Language: Visual Basic .NET (VB.NET)
- OS: Windows
git clone https://github.com/your-username/PizzaShop2.git- Open Visual Studio
- Go to File → Open → Project/Solution
- Navigate to the cloned folder and open
PizzaShop2.sln
- Press F5 or click the Start button in the toolbar to build and run
- The Pizza Shop form will launch and be ready to use
If Supreme selected:
cost = Supreme price for selected size
Toppings disabled and cleared
Else:
cost = Base price for selected size
If Sauce selected: cost += $2
For each topping selected: cost += toppingCost (size-dependent)
tax = cost × 0.06
total = cost + tax
This project is created for educational and learning purposes.
- Nidhi - https://github.com/Nid-hex - nidhi07290@gmail.com
- Project Link - # 🍕 Pizza Shop - VB.NET Windows Forms Application
A Windows Forms application built with VB.NET that simulates a pizza ordering system, allowing customers to customize and place pizza orders with real-time cost calculation.
PizzaShop2 is a desktop GUI application developed in Visual Basic .NET using Windows Forms. It provides an interactive interface for selecting pizza size, base type, extra toppings, and a supreme option — then calculates the total cost including 6% tax.
- Pizza Size Selection — Choose from Small, Medium, or Large using radio buttons
- Base Pizza Selection — Choose between Plain or Sauce (mutually exclusive checkboxes)
- Extra Toppings — Add individual toppings with size-based pricing
- Supreme Pizza Option — Locks out individual toppings; applies a fixed premium price
- Auto Cost Calculation — Calculates pizza cost, 6% tax, and total on order placement
- Input Validation — Sauce base adds a flat $2 charge; Supreme disables topping selection
| Size | Base Price | Supreme Price |
|---|---|---|
| Small | $10.00 | $15.00 |
| Medium | $12.00 | $21.00 |
| Large | $15.00 | $27.00 |
| Size | Topping Cost |
|---|---|
| Small | $1.00 |
| Medium | $1.50 |
| Large | $2.25 |
Available toppings: Mushroom, Sausage, Onions, Green Pepper
| Item | Charge |
|---|---|
| Sauce Base | +$2.00 |
| Tax | 6% |
- Select a pizza size — Small, Medium, or Large
- Choose a base — Plain (no extra charge) or Sauce (+$2.00)
- Add toppings — Check any combination of Mushroom, Sausage, Onions, or Green Pepper
- OR select Supreme — Automatically disables and clears individual toppings; applies supreme pricing
- Click Place Order to calculate and display:
- Pizza Cost
- Tax (6%)
- Total Amount
- Click Exit to close the application
PizzaShop2/
│
├── Form1.vb # Main form logic (event handlers & calculations)
├── Form1.vb [Design] # Windows Forms UI designer
├── ApplicationEvents.vb # Application-level event handling
├── App.config # Application configuration
└── My Project/ # Project settings and resources
| Control Name | Type | Purpose |
|---|---|---|
rdoSmall |
RadioButton | Select Small pizza |
rdoMedium |
RadioButton | Select Medium pizza |
rdoLarge |
RadioButton | Select Large pizza |
chkPlain |
CheckBox | Select Plain base |
chkSauce |
CheckBox | Select Sauce base (+$2) |
chkMushroom |
CheckBox | Add Mushroom topping |
chkSausage |
CheckBox | Add Sausage topping |
chkOnions |
CheckBox | Add Onions topping |
chkGreenPepper |
CheckBox | Add Green Pepper topping |
chkSupreme |
CheckBox | Select Supreme pizza (locks toppings) |
btnOrder |
Button | Calculate and display order cost |
btnExit |
Button | Close the application |
lblCost |
Label | Displays pizza cost |
lblTax |
Label | Displays tax amount |
lblTotal |
Label | Displays total amount |
- IDE: Visual Studio 2019 or later
- Framework: .NET Framework 4.x (Windows Forms)
- Language: Visual Basic .NET (VB.NET)
- OS: Windows
git clone https://github.com/your-username/PizzaShop2.git- Open Visual Studio
- Go to File → Open → Project/Solution
- Navigate to the cloned folder and open
PizzaShop2.sln
- Press F5 or click the Start button in the toolbar to build and run
- The Pizza Shop form will launch and be ready to use
If Supreme selected:
cost = Supreme price for selected size
Toppings disabled and cleared
Else:
cost = Base price for selected size
If Sauce selected: cost += $2
For each topping selected: cost += toppingCost (size-dependent)
tax = cost × 0.06
total = cost + tax
This project is created for educational and learning purposes.
- Nidhi - https://github.com/Nid-hex - nidhi07290@gmail.com
- Project Link - https://github.com/Nid-hex/PizzaShop