Git Product home page Git Product logo

pizza-place's Introduction

Pizza Place

Epicodus Project in JavaScript, HTML, and CSS, August 25, 2017

By Kelsey Langlois

Description

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.

Setup/Installation Requirements

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

Specifications

  • 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"
  • 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"

Support and contact details

Please contact [email protected] with questions, comments, or issues.

Technologies Used

  • HTML
  • CSS
  • Bootstrap
  • JavaScript

License

Copyright (c) 2017 Kelsey Langlois

This software is licensed under the MIT license.

pizza-place's People

Contributors

langlk avatar

Watchers

James Cloos 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.