zperez0 / pizza-shop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pizza Shop

By Z Perez

A simple web application created to let users build their own pizza and return a calculated cost.

Links

https://zperez0.github.io/pizza-shop/

Technologies Used

  • HTML
  • CSS
  • Bootstrap
  • JavaScript
  • jQuery

Description

This web application is designed to allow users to build their own pizzas by choosing up to two toppings and sizes. The total cost is calculated based on a choice of desired toppings and size. This project was created in order to demonstrate my knowledge and understanding of object-oriented programming.

Setup/Installation Requirements

  • Open GitHub
  • Copy repository url
  • Clone this repository to your desktop
  • Open pizza-shop/index.html
  • Drag and drop into browser

Tests:

Describe: Pizza()

Test: "it should return a Pizza object with two properties for topping and size."

Code: const myPizza = new Pizza ('Veggies', 'Large');

Expected Output: Pizza { toppings: 'Veggies', size: 'Large' }

Test: "it should return a Pizza object with two values for the property topping and a single value for the property size."

Code: const myPizza = new Pizza(['Veggies','Cheese'], 'Large');

Expected Output: myPizza { toppings:['Veggies', 'Cheese'], size: 'Large' }

Describe: toppingOnePrice()

Test: "it should return a Pizza object with three properties for topping, size, and price."

Code: const myPizza = new Pizza(['Veggies','Cheese'], size: 'Large', 4.99);

Expected Output: myPizza { toppings:['Veggies', 'Cheese'], size: 'Large', price: 4.99 }

Describe: toppingTwoPrice()

Test: "It should return the cost of adding cheese to a pizza"

Code: const myPizza = new Pizza ('Cheese');

Expected Output: price: 1

Describe: sizePrice()

Test: "It should return the cost of a small pizza"

Code: const myPizza = new Pizza('Cheese', 'Small');

Expected Output: price: 10

Known Bugs

  • No known issues

License

MIT

Copyright (c) 2022 Z Perez

About


Languages

Language:HTML 43.1%Language:JavaScript 42.9%Language:CSS 13.9%