Computer Science Homework Solutions
Problem
#106676

Two Dimensional Array

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

Solution
What is this?
By OTA - Overall OTA Rating
Purchase Cost Now
$2.19 CAD (was ~$31.92)
Included in Download
  • Plain text response
  • Attached file(s):
    • tda.cpp
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
  • Write value returning and void Java methods - You have already written the code for the four loop problems which you will now combine into one program with four distinct methods. For this assignment you will write methods, two value returning met ...
  • Combine the four loop problems into one program with four distinct methods - Combine the four loop problems into one program with four distinct methods. For this problem you will write methods, two value returning methods and two void methods. You may chose of the 4 distinct ...
  • Returning Error Indicators from Methods - Java - Modify the set methods in class Time2 of Fig. 8.5 to return appropriate error values if an attempt is made to set one of the instance variables hour, minute or second of an object of class Time to an ...
  • User Defined Functions - The function printGrade in this example {see attachment} is written as a void function to compute and output the course grade. The course score is passed as a parameter to the function printGrade. R ...
  • Programming in Java II - Develop a program that plays "Five Card Stud". - CSC 212 – Homework #6 Develop a program that plays "Five Card Stud". The user plays agains the computer. The program will "deal" five cards to the user and itself. Whoever has the highest hand wins ...
Browse