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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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