This is the readme to SimulatTopPot. On this project we were asked to create a simulation of Top Pot's donut needs. To acheive this, first we must gather foot traffic numbers by using Math.random. By providing the min/max foot traffic per hour for each location, a random numbeer is produced. That number is used in another function which calculates the donuts needed at each store for one hour. The fuction runs on a loop for the 11 hours each store is open. Those numbers are printed out to the console. Once the hourly totals print, they are followed by the daily need of each store. Also right before and after the daily totals, I have a console.log of a series of = marks. They were a reccomendation from my dad to help with readability of the results. To make this simulator more accurate I would reccomend separating by types of donuts. A calculation of donuts per hour is great, but with this calculator a store could still end up with more of one type than they need and not enough of a type do. Doing the calculations for every half hour or so could also add to it's accuracy.
downtown needs 56 donuts for hour: 1 SimulateTopPot.html:22 downtown needs 84 donuts for hour: 2 SimulateTopPot.html:22 downtown needs 52 donuts for hour: 3 SimulateTopPot.html:22 downtown needs 56 donuts for hour: 4 SimulateTopPot.html:22 downtown needs 64 donuts for hour: 5 SimulateTopPot.html:22 downtown needs 68 donuts for hour: 6 SimulateTopPot.html:22 downtown needs 72 donuts for hour: 7 SimulateTopPot.html:22 downtown needs 48 donuts for hour: 8 SimulateTopPot.html:22 downtown needs 80 donuts for hour: 9 SimulateTopPot.html:22 downtown needs 80 donuts for hour: 10 SimulateTopPot.html:22 downtown needs 48 donuts for hour: 11 SimulateTopPot.html:48 ======================================================= SimulateTopPot.html:49 downtown needs 636 for each day SimulateTopPot.html:50 ======================================================= SimulateTopPot.html:22 capHill needs 18 donuts for hour: 1 SimulateTopPot.html:22 capHill needs 22 donuts for hour: 2 SimulateTopPot.html:22 capHill needs 30 donuts for hour: 3 SimulateTopPot.html:22 capHill needs 30 donuts for hour: 4 SimulateTopPot.html:22 capHill needs 10 donuts for hour: 5 SimulateTopPot.html:22 capHill needs 28 donuts for hour: 6 SimulateTopPot.html:22 capHill needs 32 donuts for hour: 7 SimulateTopPot.html:22 capHill needs 6 donuts for hour: 8 SimulateTopPot.html:22 capHill needs 28 donuts for hour: 9 SimulateTopPot.html:22 capHill needs 6 donuts for hour: 10 SimulateTopPot.html:22 capHill needs 36 donuts for hour: 11 SimulateTopPot.html:48 ======================================================= SimulateTopPot.html:49 capHill needs 208 for each day SimulateTopPot.html:50 ======================================================= SimulateTopPot.html:22 SLUnion needs 66 donuts for hour: 1 SimulateTopPot.html:22 SLUnion needs 66 donuts for hour: 2 SimulateTopPot.html:22 SLUnion needs 66 donuts for hour: 3 SimulateTopPot.html:22 SLUnion needs 60 donuts for hour: 4 SimulateTopPot.html:22 SLUnion needs 66 donuts for hour: 5 SimulateTopPot.html:22 SLUnion needs 60 donuts for hour: 6 SimulateTopPot.html:22 SLUnion needs 66 donuts for hour: 7 SimulateTopPot.html:22 SLUnion needs 66 donuts for hour: 8 SimulateTopPot.html:22 SLUnion needs 72 donuts for hour: 9 SimulateTopPot.html:22 SLUnion needs 72 donuts for hour: 10 SimulateTopPot.html:22 SLUnion needs 60 donuts for hour: 11 SimulateTopPot.html:48 ======================================================= SimulateTopPot.html:49 SLUnion needs 684 for each day SimulateTopPot.html:50 ======================================================= SimulateTopPot.html:22 WWood needs 16.5 donuts for hour: 1 SimulateTopPot.html:22 WWood needs 6 donuts for hour: 2 SimulateTopPot.html:22 WWood needs 13.5 donuts for hour: 3 SimulateTopPot.html:22 WWood needs 18 donuts for hour: 4 SimulateTopPot.html:22 WWood needs 12 donuts for hour: 5 SimulateTopPot.html:22 WWood needs 9 donuts for hour: 6 SimulateTopPot.html:22 WWood needs 10.5 donuts for hour: 7 SimulateTopPot.html:22 WWood needs 12 donuts for hour: 8 SimulateTopPot.html:22 WWood needs 10.5 donuts for hour: 9 SimulateTopPot.html:22 WWood needs 16.5 donuts for hour: 10 SimulateTopPot.html:22 WWood needs 9 donuts for hour: 11 SimulateTopPot.html:48 ======================================================= SimulateTopPot.html:49 WWood needs 141 for each day SimulateTopPot.html:50 ======================================================= SimulateTopPot.html:22 Ballard needs 57 donuts for hour: 1 SimulateTopPot.html:22 Ballard needs 56 donuts for hour: 2 SimulateTopPot.html:22 Ballard needs 31 donuts for hour: 3 SimulateTopPot.html:22 Ballard needs 58 donuts for hour: 4 SimulateTopPot.html:22 Ballard needs 55 donuts for hour: 5 SimulateTopPot.html:22 Ballard needs 27 donuts for hour: 6 SimulateTopPot.html:22 Ballard needs 39 donuts for hour: 7 SimulateTopPot.html:22 Ballard needs 19 donuts for hour: 8 SimulateTopPot.html:22 Ballard needs 9 donuts for hour: 9 SimulateTopPot.html:22 Ballard needs 24 donuts for hour: 10 SimulateTopPot.html:22 Ballard needs 15 donuts for hour: 11 SimulateTopPot.html:48 ======================================================= SimulateTopPot.html:49 Ballard needs 340 for each day SimulateTopPot.html:50 =======================================================