/pizza-order

practicing objects and prototypes

Primary LanguageJavaScript

Pizza Order

Simple page for a pizza parlor, 8/27/2016

By Anand Angalig

Description

Users will be able to pick the size and the toppings of the pizza and the program will calculate the total price for the pizza order.

Setup/Installation Requirements

  • Go to anandangalig.github.io/pizza-order to see the web page in your web-browser.
  • Go to https://github.com/anandangalig/pizza-order.git and clone this repository onto your local machine.
  • To see the code, open the cloned repository in your favorite text editor.

To see the hosted app without cloning the repository

Known Bugs

It is lacking the functionality to order multiple orders of pizzas at the same time.

Support and contact details

Please contact me at anandangalig@gmail.com with any feedback

Specs:

  • Behavior: If user tries to place an order without choosing a size, the program will display an error message.
    • Input: None, but "Place Your Order" button is pressed
    • Output: Alert box appears : Please choose a size for your pizza and try again!; No total or pizza image displayed.
  • Behavior: If user selects size Small, Medium, or Large and placed the order, the program will display the Order total as $5, $7, or $9 respectively and display the pizza image.
    • Input: Step 1 Choose a size: Medium
    • Output: Your Order Total is: $7
  • Behavior: If user selects size Medium with Meat toppings only, the total will be increased by $3 per selection.
    • Input: Size: Medium; Toppings: Pepperoni
    • Output: Your Order Total is: $10
  • Behavior: If user selects size Medium with Veggie toppings only, the total will be increased by $2 per selection.
    • Input: Size: Medium; Toppings: Mushrooms
    • Output: Your Order Total is: $9
  • Behavior: If user selects size Medium with both Meat and Veggie toppings, the total will include $3 and $2 per selection respectively, plus $7 for the Medium size.
    • Input: Size: Medium; Toppings: Pepperoni, Mushrooms
    • Output: Your Order Total is: $12
  • Behavior: If user selects size Large with both Meat and Veggie toppings, the total will include $3 and $2 per selection respectively, plus $9 for the Large size.
    • Input: Size: Large; Toppings: Pepperoni, Mushrooms
    • Output: Your Order Total is: $14
  • Behavior: If user selects size Small with both Meat and Veggie toppings, the total will include $3 and $2 per selection respectively, plus $5 for the Small size.
    • Input: Size: Small; Toppings: Pepperoni, Mushrooms
    • Output: Your Order Total is: $10

License

This web-page is licensed under the MIT license.

Copyright (c) 2016 Anand Angalig