Question
C++ Assignment: In C++, you will need to create a multidimensional array for this project. The array should have 100 rows (to handle a maximum
C++
Assignment:
In C++, you will need to create a multidimensional array for this project. The array should have 100 rows (to handle a maximum of 100 student records) and 6 columns (column 0 for the student ID, columns 1- 4 for the test score grades, column 5 for the average grade). You should initialize all entries in the array to -1.
The processing steps are:
1) Read all the data from the input file into the appropriate multidimensional array.
2) After reading in all the data, the program is to print the list of student IDs and all their test scores (in other words, print out the contents of the array)
3) After this information is printed, the program is to sort the listing of students (and their test scores), by student ID number from high to low, and print the list again.
4) The p rogram is then to calculate the students test average for each student, and store that average into the array in column 5.
5) The program should then print the student information (ID and test scores) for each student, and before moving on to the next student, calculate a course letter grade using a standard 10 point spread and print the letter grade. The course grade is to be one of the five standard letter grades of A, B, C, D, or F. 6) Using the test score average as the key, the program is then to sort the student information in the order of highest test average to lowest test average. 7) The program is then to print a final list of the students, their test scores, averages, and course grade.
Note: Each printing of the arrays is to be done with the SAME print function that you create (if the test average column contains a -1, then you should not print it).
This is what the data file looks like:
004457 77.8 98.2 88.3 78.5
004329 98.3 87.3 93.7 89.2
002359 98.8 93.5 94.1 90.2
004392 88.8 59.2 67.7 90.5
005426 60.4 90.9 96.3 77.7
003358 55.4 34.4 23.4 77.1
000045 99.5 88.8 55.9 94.5
003545 88.2 82.2 78.9 68.3
004000 55.8 89.9 78.2 90.3
003911 92.3 92.3 94.3 80.2
003174 66.7 56.8 71.2 65.9
003329 66.1 62.6 54.1 45.2
003199 55.5 66.6 66.2 62.1
001001 90.4 77.3 72.2 68.8
005358 78.7 76.6 77.2 71.4
004358 77.3 66.3 74.8 50.6
004248 77.9 71.2 76.7 75.3
003000 88.9 88.0 81.4 82.4
002145 55.9 89.9 82.2 84.6
008181 45.3 66.2 55.8 51.9
002938 66.5 55.7 55.8 44.9
002100 77.2 77.8 88.3 83.2
003510 66.7 77.1 76.6 79.3
003977 90.9 88.3 88.8 91.1
003602 77.9 34.7 78.9 78.4
000087 88.8 77.6 66.6 89.9
005299 45.5 56.5 34.6 55.6
003425 77.8 77.9 72.4 80.1
003392 80.3 78.9 71.4 62.2
005777 81.5 89.6 93.6 95.1
003587 98.3 89.3 78.4 99.4
004283 82.2 81.9 72.6 75.6
004425 55.5 66.6 54.5 59.9
004379 66.2 67.3 72.1 45.6
009999 58.7 65.2 73.9 77.1
004174 66.8 90.9 58.4 69.4
007977 77.6 78.1 71.3 69.5
005175 88.8 67.8 86.6 78.2
006911 82.9 85.7 88.2 86.9
004199 69.9 78.7 50.2 67.5
003777 66.7 56.2 78.9 55.9
003999 76.8 87.4 87.1 79.3
003671 56.6 45.6 34.5 23.8
000010 66.8 90.9 87.7 65.6
003248 67.3 77.8 65.9 87.2
003283 99.3 92.2 87.8 90.3
005545 99.2 98.7 97.6 99.1
002727 89.9 33.5 76.4 67.1
003379 77.4 66.8 75.5 75.2
003457 99.9 89.9 99.9 94.6
Thanks in advance for all your help!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started