Purchase Solution

Two Dimensional Array

Not what you're looking for?

Ask Custom Question

Write a C++ program that uses a two dimensional array, testgrades[][], for 10 students and scores from 5 tests.

 Write a function initializeArray(), which will initialize the array to the following values
o 1,75,65,85,90,60
o 2,70,85,90,60,70
o 3,65,68,73,83,95
o 4,86,92,73,89,64
o 5,78,89,72,63,97
o 6,65,93,83,87,79
o 7,78,82,89,77,82
o 8,63,82,95,99,77
o 9,83,91,69,74,88
o 10,75,83,96,92,88
 Write a value-returning function arrayMaximum() which will return the maximum score for the class
 Write a value-returning function arrayMinimum() which will return the minimum score for the class
 Write a value-returning function, arrayRange(), which will print the range of score values for the class
 Write a function, computeAverage(), which will compute the average for each student and also computer the average for the entire class
 Write a function, frequencyChart(), which will print the frequency of the occurrence of the scores
 Also, print the Student ID's of students whose average is above the average

Purchase this Solution

Solution Summary

Two Dimensional Array is highlighted.

Solution Preview

The attached cpp file contains a code that performs all the tasks requested in 1.doc

There are usually a very large number of different implementations that can produce the same results.
As there are no specifications on particulars of implementation in this posting, I made all as simple as I could think of at ...

Purchase this Solution


Free BrainMass Quizzes
Javscript Basics

Quiz on basics of javascript programming language.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.