Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ The OK-Service Handlers Company handles daily service calls from customers, phone calls. The company handles folks problems over the phone. The powers to be

C++

The OK-Service Handlers Company handles daily service calls from customers, phone calls. The company handles folks problems over the phone. The powers to be needs a summary on the calls made in a given month.

The data collected collects each days service calls that come in are recorded in a file named SericeCalls.dat. I will put the file out on Blackboard under Assignments.

The input data indicates the type of service call made and the number of minutes that service call lasted. The company handles several different kinds of calls and each day there will be several different entries for a given call for a given day. The input will be two numbers per line where the first number is the type of service call and the second is the number of minutes that call lasted. Each input line is a record of one service call. There are 25 different types of service rendered and they are numbered 1 to 25.

For example:

3 30 service number 3 and lasted 30 min.

21 45 service number 21 lasted 45 min.

6 28 service number 6 lasted 28 min.

etc..

The company can handle up to 25 different kinds of services. The input file is one month of data.

The company also needs to know how many calls are made for each of the 25 services offered.

You are to count the number of service calls for each type of service handle and the total number of minutes the call took.

You are to generate a report with the following information. The report should have a title and headings. Output line for each type of service call rendered, the total number of service calls for each type of service, the total number of minutes (for the month) spent for each type, the average time spent on each of the service calls. Also a summary for the month of all service calls: the total number of all service calls handle by the company, the average number of minutes of all service calls handle for the month.

I also need to know in the summary if and which service call types were not used. Also tell me which service call, on average, took the most time to handle. Label all output and make it a nice readable report, table format.

Restrictions: You are to use an array of structures to solve the problem. Hint; ignore 0 position in array of structures?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions