← All tools

amirhosseinmohtashami179-sudo/git.project.one

Popularity 70 Updated Network & Systems

A simple interactive Python command-line script that simulates a pizza ordering and billing system with customizable sizes and toppings.

githubauto-collected

Installation

A directly usable install command is not verified yet. Check the project documentation or releases.

Python Pizza Order Calculator 🍕

A beginner-friendly Python command-line application that simulates an automated pizza ordering system. It calculates the final bill based on the user's customized choices, including pizza size, pepperoni topping, and extra cheese.

---

Features

  • Size Selection: Supports Small (S), Medium (M), and Large (L) sizes with base pricing.
  • Custom Toppings (Pepperoni): Adds dynamic extra charges depending on whether pepperoni is requested and what the base pizza size is.
  • Extra Cheese: Offers an option to add extra cheese for a flat additional fee.
  • Dynamic Bill Calculation: Tracks and accumulates costs step-by-step, outputting the final total amount at the end of the session.

---

Pricing Logic

  • Base Price:
  • Small (S): $15
  • Medium (M): $20
  • Large (L): $25
  • Pepperoni Add-on:
  • For Small (S) pizzas: +$2
  • For Medium (M) or Large (L) pizzas: +$3
  • Extra Cheese Add-on:
  • For Any Size: +$1

---

How to Run

  • Ensure you have Python installed on your system (Python 3.x recommended).
  • Download or copy the script (project1.py).
  • Run the script in your terminal or command prompt:
   python project1.py