Question: C++ Question Problem #1 (50 points): calculate average test score and letter grade Write a program that randomly generates 20 test scores, between 50 to
C++ Question
Problem #1 (50 points): calculate average test score and letter grade
Write a program that randomly generates 20 test scores, between 50 to 100, and store them into an int array.
Include two overloaded functions with the following headers and requirements:
Headers:
double sum(const double TestScores[], int ArraySize, int& IndexHighestScore, int& IndexLowestScore)
int sum(const int TestScores[], int ArraySize, int& IndexHighestScore, int& IndexLowestScore)
Requirements:
i.Therefore, only 18 scores are to be sum and be used in finding the average score.
ii.These functions will retain of the indices (pass by reference) of the highest and lowest scores in the array.
Include two overloaded functions that return a letter grade of a score with the following headers and requirements:
Headers:
char LetterGrade( int testScore)
char LetterGrade( double testScore)
Requirements:
Determine and return the letter grade base on the test score (pass by value) as follow:
testScore >= 90, LetterGrade is A
testScore >= 80 and
testScore >= 70 and
testScore >= 60 and
testScore
Test the functions from the main() and display the exact output as follow:

Grading is as follow:
No submission or unable to compile. 50 points
Logic (occur when a program does not perform the way it was intended) errors. 5 points each
Runtime (causing the program to terminate unexpectedly) errors. 10 points each
Other errors for not follow directions 1 to -5 points each depend on its severity
CAUsersInq41398 documents visual studio 2017 Projects\ Projectl\Debug\Project1.exe PROGRAM #1 20 Randomly generated test scores: 95. 90. 63. 64. 52. 78. 52. 51. 71. 72. 94. 76. 89. 86, 61. 76. 72. 54. 83. 76 Array information Index Score Grade Statu 95 90 63 64 52 78 52 51 71 72 94 76 89 86 61 76 72 54 83 76 Omitted Used Used Used Used Used Used Omitted Used Used Used Used Used Used Used Used Used Used Used Used 12 14 15 17 18 The calculated average score is 72.7222 and the final letter grade is (C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
