Small Javascript app
An ice cream stand opens up at 11am on a sunny day.
How long will a customer who arrives around 6pm need to wait for the ice cream maker to begin making a cone for them?
It takes the ice cream maker on average seven minutes to make each cone, regardless of time of day.
You can assume that cone-making time is normally distributed, with a standard deviation of one minute,so a library call like [login to view URL] should do the trick.
A new customer shows up on average every seven minutes, regardless of time of day. You can assumethat arrivals are exponentially distributed, so [login to view URL] would be a good way to simulatethe length of time between each arrival.
Please run your simulation 1,001 times.
To show us your answer, please build a web page where a user can adjust the default parametersspelled out abov
that the simulated time window is seven hours,
- that cone-making time is on average seven minutes with a standard deviation of one minute,
- that arrivals are spaced on average seven minutes apart, and
- that the simulation is repeated 1,001 times);
and can then see how many minutes the final-arriving customer needs to wait for the ice cream makerto begin making their cone.
Please use Python, JavaScript, or both, in whatever framework(s) you prefer.
Your UI can be as simple asyou’d like it to be.
Greetings !
Got through the requirements thoriughly and I am interested in developing this web application for you. I will use javascript to build this along with html and css.
The requirements are pretty straight fowward and I am pretty sure that I can do this. Ping me if you are interested, I can show you my previous projects via chat.
Thank you
Hi there. I have read the project details and understand that you want to build a simulator to simulate a scenario in order to answer the question "how long will a customer who arrives around 6pm need to wait for the ice cream maker to begin making a cone for them". I can write the simulator in JavaScript which gives text-based results. If you would like to discuss, please message me. Thank you.