Skip to content

Week 4 Epicodus Solo Project: Welcome to Tony's! Pick your toppings and size and it will tell you the price!

Notifications You must be signed in to change notification settings

paigetiedeman/Pizza-Parlor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pizza Parlor

This is an application where a user can input items and receive a pizza order.

By Paige Tiedeman

Technologies Used

  • HTML
  • CSS
  • JavaScript
  • JQuery
  • Bootstrap
  • Google Fonts
  • Canvas Confetti

Description

This simple HTML site lets the user to choose toppings, pizza size and crust type to pick out a pizza to order. Using JavaScript OOP to take inputs and return the final cost of a pizza.

Setup/Installation Requirements

  • Clone this repository to your desktop
  • Go to the top level of this directory
  • Open index.html in your browser
  • Input the various toppings and size options
  • Receive your cost for the pizza

Known Bugs

  • if button is clicked multiple times the price changes

License

MIT

Copyright (c) 2021 Paige Tiedeman

Contact Information

Paige Tiedeman paigetiedeman@gmail.com

Tests

Describe Pizza()

Test: "A user can input one topping for their desired pizza and the function will store it"
Code: let pizza = new Pizza("1", 20);
Expected Output: Pizza {topping: "1", size: 20}

Test: "It will return a cost for one topping"
Code: let pizza = new Pizza("1", 20); Expected Output: $20

Test: "A user can input additional toppings for their desired pizza and the function will store it"
Code: let pizza2 = new Pizza(["cheese", "pepperoni"], 20);
Expected Output: Pizza {topping: Array(2), size: 20}

Test: "A user can input toppings and size for their desired pizza and get a price"
Code: let pizza2 = new Pizza(["cheese", "pepperoni"], 20);
Expected Output: pizza2 = $25

Test: "An additional charge is added for crust type"
Code: let pizza2 = new Pizza(["cheese", "pepperoni"], 20, "gluten-free");
Expected Output: pizza2 = $30

Test: "It will output a price based on user selections"
Code: input "Cheese", 20", "Cheese Stuffed"
Expected Output: $30

Test: "User can select a different crust to add on a cost"
Code: input: "Cheese", 20", "Gluten-free"
Expected Output: $38

Test: "Multiple selections will add together for final cost"
Code: input: "Cheese", 20", "Gluten-Free"
Expected Output: $23

About

Week 4 Epicodus Solo Project: Welcome to Tony's! Pick your toppings and size and it will tell you the price!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published