Explain 2 dimensional arrays in detail

Assignment Help C/C++ Programming
Reference no: EM13938800

2 dimensional arrays Service Calls Company Report

Service Calls Company Report

The Service Handlers Company handles daily service calls (phone calls) from customers. The company handles clients' problems over the phone. The company needs to generate a a summary on the calls made in a given month.

The data collected is each day's service calls that come in are recorded in a file named SericeCalls.dat.

The 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. 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 services rendered that 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.

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

The report should have in it the following information.

• The report should have a title and headings.

• Output for each type of service call rendered,

• the total number of that service call handle for the month,

• the total number of minutes spent on that type of service call,

• the average number of minutes each service type took to handle,

• the overall average a service calls took for the month.

• You must use a 2-D array, pass array, and use functions.

Your 2-D array use the row number as the type of service call (1-25) (you can ignore row 0 so your 2-D array will have 26 rows, 1 to 25 and row 0 not used), column 0 as the accumulated times for the given service call, column 1 that count the times the given kind of service call (count the calls for service call 1, call 2 ... call 25 that was used in the given month), col 2 for the average for each service call made for the month.

Attachment:- ServiceCalls.txt

Reference no: EM13938800

Questions Cloud

Improve processes and activities in organisation : What motivates you to succeed at your work? How do you define a productive day? What things do you consider important in motivating and involving people in organisational change? What steps would you use in managing people to improve processes and..
Determine the revised annual depreciation expense : On January 1, 2007, Blizzards-R-Us purchased a snow-blowing machine for $85,000. Determine the revised annual depreciation expense for 2009.
Distinguish between the five different leukocytes : Identify the arterial and venous circulatory changes that occur in the fetal circulation. Distinguish between the five different leukocytes and describe their roles in protection of the body.
So far our discussion and focus has been on business : So far our discussion and focus has been on business combinations where 100% of another company has been acquired.
Explain 2 dimensional arrays in detail : The data collected is each day's service calls that come in are recorded in a file named SericeCalls.dat.
What is your overall evaluation of the proposed services : Write a paper that documents your transition pathways experience. Include the following in your paper: Are the recommended assessments available? Summary: what is your overall evaluation of the proposed services
How does it affect venous return of blood to the heart : Describe Valsalva's maneuver by stating the role of the vocal cords and the abdominal muscles in accomplishing this maneuver. How does it affect venous return of blood to the heart? Why is it used as a test for the presence of a space-occupying le..
What is the book value of the machine at the end of year : What is the book value of the machine at the end of 2009? What would have been the effect on the financial statements if Roanoke Manufacturing had expensed the addition of the robotic arm?
Why wal-mart engaged in internationalisation strategies : Through the use of suitable tools, conduct a foreign market analysis and evaluate critically the strategic and environmental reasons of why Wal-Mart engaged in internationalisation strategies.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Program that generates a new list

Given a list listA of numbers, write a program that generates a new list listB with the same number of elements as listA, such that each element in the new list is the average of its neighbors and itself in the original list. For example, if listA..

  Implement an overloaded assignment operator for point class

Implement an overloaded assignment operator = for the Point class. Implement overloaded stream insertion operator for the Point class. Implement overloaded comparison operators == and != for the Point class

  Guessing game

In C++ develop a "guessing game" where the computer and the user alternatively guess the value of a randomly selected secret number between 1 and 99 (or any other maximum value). Initially, the computer selects the random number, and the user make..

  Program to report on the roots of a quadratic equation

Write a complete C++ program to report on the roots of a quadratic equation ax2 + bx + c = 0, a ≠ 0. compute the roots.

  Program that asks the user to enter up to 100 integer score

Write a C program that asks the user to enter up to 100 integer scores, which are to be stored in an array. (You should allow the user to terminate input prior to entering all 100 scores.) The program should then display all the scores, ten per line,..

  Write function to count the number of sentences

Count the number of words as well as the sentences and return and average the number of words per sentence.

  Write a program to determine a natural number

Write a program to determine if a natural number has only 2 and/or 3 as prime factors and how many of each factor (2 and 3) it does have.

  Write a program to display the total salary for assistant

Write a program to display the total salary for assistant professors, associate professors, full professors, and all faculties, respectively, and show the average salary for assistant professors, associate professors, full professors, and all facu..

  Features frequently used in web programming

In this assignment, you will experience some of the C# features frequently used in Web programming.  There isn't any client interaction in this assignment; rather, you statically construct some to-do item instances (you create a class named ToDoIt..

  Write a modular program in three files

Acts as a cafeteria kiosk, continually prompting the user for a number (1-10) indicating the quality of food at the cafeteria. Input of -1 will stop the polling function, and initiate the reporting functionality which displays a histogram to the u..

  Mark the following statements as true or false

Mark the following statements as true or false.

  Write a function template square()

Write a function template Square() that returns the square of its only argument.

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