Computes the wait time in seconds calculate the mean and


Problem

One of the local banks is gearing up for a big advertising campaign and would like to see how long its customers are waiting for service at drive-in windows. The bank has asked several employees to keep accurate records for the 24-hour drive-in service. The collected information, which is read from a file, consists of the time when the customer arrived in hours, minutes, and seconds; the time when the customer was actually served; and the ID number of the teller. Write a program that does the following: a. Reads in the wait data.

b. Computes the wait time in seconds.

c. Calculates the mean, standard deviation (the square root of the sum of the squares of the differences between each value and the average divided by the number of values minus one-see formulas in previous problem), and range.

d. Prints a single-page summary showing the values calculated in c.

Input

The first data line contains a title. The remaining lines each contain a teller ID, an arrival time, and a service time. The times are broken up into hours, minutes, and seconds according to a 24-hour clock. Processing

Calculate the mean and the standard deviation. Locate the shortest wait time and the longest wait time for any number of records up to 100.

Output

The input data (echo print). The title. The following values, all properly labeled: number of records, mean, standard deviation, and range (minimum and maximum).

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Computes the wait time in seconds calculate the mean and
Reference No:- TGS02652854

Expected delivery within 24 Hours