Computes the wait time in seconds

Assignment Help Computer Engineering
Reference no: EM131857353

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

Reference no: EM131857353

Questions Cloud

Demonstrations to educate people beforehand about the change : Try to covertyly influence others nby selectively providing information in favor of the desired change
Calculates the class mean and standard deviation : Calculates the class mean, standard deviation and percentage of the test scores falling into the ranges.
Rewrite each of the following and use parallelism : Rewrite each of the following and use parallelism to accentuate the parallel ideas.
The difference between a tariff and a non-tariff barrier : Briefly describe the difference between a tariff and a non-tariff barrier and give at least one example of each.
Computes the wait time in seconds : Computes the wait time in seconds. Calculate the mean and the standard deviation. Locate the shortest wait time and the longest wait time for any number.
Best-cost strategy end up working for a small business : Is there actually a midpoint between these two strategies that combines aspects of both? How would a best-cost strategy end up working for a small business?
What are your thoughts on religion and spirituality : What are your thoughts on religion and spirituality in the workplace? Does religion/spirituality have a place at work?
Top five search engines in global business : Compare and contrast the top five search engines in global business. How do they aid in decision-making and negotiation processes?
Create a new file that contains the information : Your program should create a new file that contains the same information (not necessarily in the same order) as the old file but without duplicates.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Implementing the java application

Write down a Java application which enables a user to enter 10 numbers (double precision) into an array and then sorts and shows the numbers from lowest to highest.

  Make a frame-based application

build a Frame-based application that displays an array of nine buttons on a Panel. Assign the Panel to the Center of your frame. Each button should display the name of a course in your department.

  Write a program that inputs several lines of text

Write a program that inputs several lines of text and a search character and uses function strchr to determine the total occurrences of the character in the lines of text.

  How does the given situation serve as an analogy

Suppose there is a small commercial retail building in town. How does this situation serve as an analogy for the concept of IP addresses with TCP port numbers?

  Solve the system for the loop currents

Write a matrix equation that determines the loop currents. [M] If MATLAB or another matrix program is available, solve the system for the loop currents.

  What is the customization index for application?

What is the customization index for this application?

  Write program that reads the resistances of three resistors

Write a program that reads the resistances of the three resistors and computes the total resistance, using Ohm's law.

  Modify the stack directly or use the existing pop operation

To implement this operation, you could either modify the stack directly or use the existing Pop operation. What would be the advantages and disadvantages of each method?

  Design an algorithm to generate

plan an algorithm to generate the sequence of positive integers (in increasing order) whose only prime divisors are 2 and 3; that is, your program should produce the sequence 2, 3, 4, 6, 8, 9, 12, 16, 18, 24, 27.

  Define several categories of threats to information security

discusses several categories of threats to information security. Study some practical cases of information security from the newspaper and websites

  How to create a poster or presentation

For an on line poster presentation, you need to use PowerPoint, Visio, MS Word, or another program that allows you to use graphics and pictures along with words to tell a story. Posters are created to tell a visual story so the intent is to use le..

  Startup code for a system that lights up

Write an ISR and startup code for a system that lights up LED0 on the PSoC Eval1 board (suppose that a wire is connecting P1[0]) to indicate "Low Voltage" whenever there is a supply voltage monitor interrupt.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd