A webpage for a theoretical pizza parlor, "The Pizzararium", that allows users to order pizzas using a form, as well as edit and confirm their order.
You can view this project on GitHub pages at langlk.github.io/pizza-place. To install on your own computer, follow the steps below:
- Clone this repository
- Open index.html in web browser of your choice
-
The program takes input from the user and prints the user's choices.
- Example Input: Size="Medium",Toppings=["Cheese", "Pepperoni"]
- Example Output: "Size: Medium", "Toppings: Cheese, Pepperoni"
-
Program stores information provided by user and displays again when prompted.
- Example Input: [Show Pizza]
- Example Output: "Size: Medium", "Toppings: Cheese, Pepperoni"
-
Program returns cost of pizza, calculated as follows:
- A default pizza has one or zero toppings.
- For a default pizza, the cost is $7 for a small, $10 for a medium, and $15 for a large.
- Example Input: Size="Large", Toppings=["Cheese"]
- Example Output: "Cost: $15"
- If there are two or three toppings, 50 cents each is added for the second and third toppings.
- Example Input: Size="Small", Toppings=["Cheese", "Canadian Bacon", "Pineapple"]
- Example Output: "Cost: $8"
- If there are four or more toppings, each additional topping is $1.
- Example Input: Size="Medium", Toppings=["Cheese", "Sausage", "Pepperoni", "Mushrooms", "Olives"]
- Example Output: "Cost: $13"
-
Program does the above for multiple Pizzas
- Example Input:
- Pizza 1: Size="Large", Toppings=["Cheese", "Pepperoni"];
- Pizza 2: Size="Medium", Toppings=["Cheese", "Mushrooms"]
- Example Output: "Pizza 1 Cost: $15.50, Pizza 2 Cost: $10.50"
- Example Input:
-
Program returns the total cost of an order.
- Example Input:
- Pizza 1: Size="Large", Toppings=["Cheese", "Pepperoni"];
- Pizza 2: Size="Medium", Toppings=["Cheese", "Mushrooms"]
- Example Output: "Order Total: $26.00"
- Example Input:
Please contact [email protected] with questions, comments, or issues.
- HTML
- CSS
- Bootstrap
- JavaScript
Copyright (c) 2017 Kelsey Langlois
This software is licensed under the MIT license.