Question: Write a C++ program to provide some statistics on the Great Point Average (GPA) of 25 students in some College of Science that has 7

 Write a C++ program to provide some statistics on the GreatWrite a C++ program to provide some statistics on the Great Point Average (GPA) of 25 students in some College of Science that has 7 different departments. The names of the departments are provided for output display. Study the main() function (do not change main()). Use the global constants. You need to implement the following functions:
initializeGPAs(): to randomly fill the 2D array gpa with random numbers between 1.00 and 4.00 inclusive.
computeDeptAvg(): to compute the average gpa of all students in each department. The computed set of averages shall be saved in the 1D array, deptAvg
StdsOnProbationCount(): to compute the total number of students, in the college, who are on probation (i.e., gpa is
StdsOnProbationCountinDeptX(): to compute the number of students who are on probation in a specific department entered by the user.
showReport(): to display the output as in the sample below. Note that the sample run is set for 10 students only. Your output is required for 25 students.
2. Write a program to provide some statisticson the Great Point Average (GPA)of25 students in some College of Science that has 7 different departments. The names of the departments are provided for output display. Study the main() function (do not change main01 Use the global constants. You need to implement the following functions: initialize GPAs(): to randomly fill the 2D array gpan with random numbers between 1.00 and 4.00 inclusive. computeDeptAvg(): to compute the average gpa of all students in each department. The computed set of averages shall be saved in the 1D array, deptAvg StdsonProbationCount to compute the total number of students, in the college, who are on probation (i.e., gpa is 2) StdsOnProbationCountinDeptX(): to compute the number of students who are on probation in a specific department entered by the user. showReport to display the output as in the sample below. Note that the sample run is set for 10 students only. Your output is required for 25 students. Enter Department Number TT to B 3 STAT COMP PHS CHEM BIOL. MATH GEOL tudent 1 2.00 3.20 2.00 3.60 2.10 1.70 1.80 tudent 2 1.10 3.30 1.50 1.10 3.80 1.00 3.500 tuden t 3 2.00 3.60 2.90 1.70 3.20 2.10 3.700 tudent 4 1.30 3.70 3.90 2.30 2.30 4.00 3.30 tudent S 1.200 3.40 3.20 3.60 2.50 1.60 1.900 tudent 6 2.00 4.00 2.10 2.60 1.50 3.80 1.30 tudent 7 2.20 2.50 1.30 2.40 2.30 3.30 2.200 tudent 8 2.700 1.30 3.30 2.90 3.10 2.10 3.500 tudent 9 2.200 1.70 1.10 1.30 1.90 3.80 3.500 2.30 1.90 1.50 2.90 2.40 2.30 2.80 tudent10 Dept Avg. 2.71 4.09 3.26 3.49 3.59 3.67 3.93 otal number of students who are on probation is: 21 umber of students who are on probation in COMP DEPT. is: 4 #include kiostream #include

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!