Coder Social home page Coder Social logo

pizzaparlor's Introduction

Pizza Parlor

This webpage simulates a pizza parlor submitting orders, Aug. 28, 2020

By Alex Goodwin

Description

This webpage simulates customer's placing orders at a pizza restaurant. It calculates cost by taking into consideration the toppings and the size of pizza.

Specs

  • Should correctly create a pizza object with properties
    • Sample Input: Small : Submit
    • Sample Output(Console): [Pizza], Pizza {topping1: undefined, topping2: undefined, topping3: undefined, topping4: undefined, topping5: undefined, โ€ฆ}
    • Sample Output: "Your total today is : $5.00 for one (Small) pizza and your toppings. If you would like another pizza today, please fill out another order and submit."
  • Should correctly return the cost of a user's pizza, based on toppings and pizza size
    • Sample Input: Pepperoni, Small: Submit
    • Sample Output: "Your total today is : $10.00 for one (Small) pizza and your toppings. If you would like another pizza today, please fill out another order and submit."
  • Should correctly add pizza objects to an array
    • Sample Input: Small : Submit x 2.
    • Sample Output(Console): [Pizza] , (2) [Pizza, Pizza]
    • Sample Output: "Your total today is : $5.00 for one (Small) pizza and your toppings. If you would like another pizza today, please fill out another order and submit."

Setup/Installation Requirements

  • Clone pizzaParlor repository.
  • Open pizza directory to view code in scripts.js, index.html, and styles.css.
  • Open index.html in desired web browser.

Known Bugs

No known bugs. Each pizza object saves into an array, but this only available for viewing in the console. It does not display individual pizza orders, but the functionality is there. Right click on the webpage, click inspect, and click console to view the pizza objects in the array.

Support and contact details

Please contact me at [email protected] for support.

Technologies Used

This webpage allows me to practice using objects and prototypes in Javascript. It also incorporates HTML, CSS, and the bootstrap framework for styling.

License

This falls under the MIT license.

Copyright (c) 2020 Alex Goodwin

pizzaparlor's People

Contributors

hagoodwi92 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.