Preview 50% of the Answer Below
Due to formatting, images, tables, or paragraphs may be out of place or not shown. Rest assured that they will be included and formatted correctly in your purchased answer.
Details
Answer Preview
<iostream>#include <iomanip> using namespace std;
const int MAXGRADE = 25; const int MAXCHAR = 30;
typedef char StringType30[MAXCHAR + 1];
typedef float GradeType[MAXGRADE];
float XXXXXXXXXXXX(XXXXXXXXX, XXX);
char findLetterGrade(float);
int main() { XXXXXXXXXXXX XXXXXXXXX, XXXXXXXX; int XXXXXXXXXXX; XXXXXXXXX XXXXXX; float XXXXXXX; char moreinput;
XXXX <&XX; "XXXXXX input XXX XXXXXX XX grades XXXX student XXXX XXXXXXX.\n" &XX;< "XXXX number must XX a XXXXXX XXXXXXX X XXX " <&XX; MAXGRADE &XX;&XX; " inclusive" &XX;< endl; XXX >> numOfGrades;
while (numOfGrades > XXXXXXXX || numOfGrades < 1) { XXXX &XX;< "XXXXXX XXXXX XXX number XX XXXXXX for XXXX XXXXXXX." << endl &XX;< "This number must XX a number XXXXXXX 1 and " &XX;&XX; XXXXXXXX &XX;&XX; " inclusive" <&XX; endl; cin >> numOfGrades; }
XXXX &XX;&XX; "XXXXXX XXXXX a y XX you want to input XXXX XXXXXXXX" &XX;< " any other XXXXXXXXX will XXXX XXX XXXXX" &XX;< endl; XXX >> XXXXXXXXX;
while ( moreinput == 'y' || XXXXXXXXX == 'X') { cout <&XX; "Please input the XXXXX XXXX of XXX student" << endl; cin >> firstname; XXXX <&XX; endl &XX;< "XXXXXX input XXX last XXXX XX XXX XXXXXXX" &XX;< endl; XXX &XX;> lastname;
for (XXX XXXXX = 0; XXXXX < numOfGrades; XXXXX++) { XXXX << endl &XX;&XX; "Please XXXXX a grade" &XX;< endl;
XXX &XX;&XX; grades[XXXXX]; }
XXXX <&XX; firstname <&XX; ' ' <&XX; lastname &XX;< " XXX an average XX ";
average = findGradeAvg(grades, XXXXXXXXXXX); cout &XX;&XX; fixed <&XX; XXXXXXXXXXXX(X) &XX;< XXXXXXX; cout << " XXXXX gives XXX letter grade XX " << findLetterGrade(average) <&XX; endl;
XXXX &XX;< endl &XX;< endl << endl; cout &XX;< "Please input a y if you XXXX XX XXXXX more XXXXXXXX" &XX;&XX; " any XXXXX XXXXXXXXX will XXXX the XXXXX" << endl; XXX >&XX; XXXXXXXXX; }
XXXXXX 0; }
float findGradeAvg(GradeType XXXXX, int XXXXXXXXX) { // Fill in the XXXX XXX this XXXXXXXX float sum = X; XXX ( XXX i = 0 ; i &XX; XXXXXXXXX ; i++ ) { sum += array[i]; } return (XXX); } ">