Question: I need help with a javascript assignment: Sunshine Books is a bookstore thats open every morning from 8:00 am to 12:00 pm. The manager wants

I need help with a javascript assignment:

Sunshine Books is a bookstore thats open every morning from 8:00 am to 12:00 pm. The manager wants information about the number of customers in the store at different times. A clerk, whose station is near the door, counts customers by making a mark on a piece of paper each time a customer enters. The paper is divided into four segments, one for each hour, and the clerk notes the time before making each mark. When the store closes at noon, the clerk wants to enter the numbers in a program, which then displays the total number of customers for the day and the average number of customers per hour. Your job, as the programmer, is to develop a program to calculate the customers for the day, and the average number of customers per hour. Assume the clerk has counted the following customers:

Hour Customers 1 75 2 96 3 22 4 108

Write a program named sunshine_books.js that calculates and displays the total customers for the day and the average customers per hour.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!