Giter Club home page Giter Club logo

donut_shop's Introduction

Donut Shop program does the following: The constructor function that represents donut shop attributes: location minimum customers maximum customers average donuts purchased per customer

And methods to:
  generate a random number of customers
  calculate amounts of donuts perchased each hour using randomly 
    generated customers and average donut sales
  calculate the sum hourly totals 
  
Next new instances of donut shops are created along with thier attributes. 
Five locations:
  Downtown, Capitol Hill, South Lake Union, Wedgewood, Ballard

An HTML table is used to represent this data.

Another method is added for rendering a new row into the table.

Another method to update the DOM with hourly and daily totals.

Method to add a row to the table Method to update row on the table

Added an input field where users can add a new instance of donut shop and they can update the data on the shops already in place.

Sources: Sample paragraph text taken from www.deloreanipsum.com

DeLorean image taken from plamoya.com

Lego Doc image taken from www.ebay.com

Donut image taken from hdwallpapers-download.com

Animations inspired from http://codepen.io/valhead/pen/wigpH

donut_shop's People

Contributors

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