Giter Club home page Giter Club logo

panuccis-pizza's Introduction

Pizza Parlor

By Skylan Lew

Epicodus Week 4 Project
Pizza Parlor Order Website

Technologies Used

  • HTML
  • CSS
  • Javascript
  • Bootstrap

Description

This website allows the user to make a pizza from the given options, and have various add ons. Upon submission, the form will calculate the total cost, and display an itemized list of what they ordered, with costs for each. At the bottom of the reciept, it shows the subtotal, tax, and final total. Due to using required in the HTML for the pizza options (but only the pizza options), the user is forced to make a pizza.

There's an easter egg! Please try to find it!

Setup/Installation Requirements

Tests

Describe Pizza()

Test 1: It should return a Pizza object with one property for size string, one for cheese string, one for toppings array, one for other array.
Code:
const myPizza = new Pizza("md-size", "md-cheese", ["pepperoni", "hot peppers"], ["millennia-cake", "popplers-cup"]);
Expected Output:
Pizza{size: "md-size," cheese: "md-cheese", toppings: ["pepperoni", "hot-peppers"], other:["millennia-cake", "popplers-cup"]};

Describe Pizza.prototype.totalCost()

Test 1: It should return a number (price) that considers the size of the pizza with tax. Tax is 25%.
Code:
const myPizza = new Pizza("md-size");
myPizza.totalCost();
Expected Result:
7.7

Test 2: It sould return a number (price) that considers the amount of cheese Code:
const myPizza = new Pizza("md-size", "lg-cheese");
myPizza.totalCost();
Expected Result:
18.75

Test 3: It should return a number (price) that considers any number of toppings. Code:
const myPizza = new Pizza ("md-size", "lg-cheese", ["pepperoni", "banana peppers", "olives"]); myPizza.totalCost(); Expected Result:
26.25

Test 4: It should return a number (price) that considers any number of drinks. Code:
const myPizza = new Pizza ("md-size", "lg-cheese", ["pepperoni", "banana peppers", "olives"], ["lobrau", "slurm"]);
myPizza.totalCost();
Expected Result:
45

Test 5: It should return a number (price) that considers any number of other items. Code:
const myPizza = new Pizza ("md-size", "lg-cheese", ["pepperoni", "banana peppers", "olives"], ["lobrau", "slurm"], ["millennia-cake", "popplers-cup"]);
myPizza.totalCost();
Expected Result:
63.75

Known Bugs

  • None

License

GNU GPL3.0

Copyright (c) 2022 Skylan Lew

panuccis-pizza's People

Contributors

doublespoiler avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.