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(GradeType, XXX);
char XXXXXXXXXXXXXXX(float);
XXX XXXX() { StringType30 firstname, lastname; XXX numOfGrades; XXXXXXXXX XXXXXX; float XXXXXXX; char XXXXXXXXX;
cout &XX;< "Please XXXXX XXX number XX XXXXXX XXXX student XXXX receive.\n" &XX;< "This XXXXXX must be a XXXXXX XXXXXXX 1 and " << MAXGRADE <&XX; " inclusive" <&XX; endl; cin >&XX; numOfGrades;
XXXXX (XXXXXXXXXXX > MAXGRADE || XXXXXXXXXXX &XX; X) { XXXX &XX;&XX; "XXXXXX XXXXX the number XX grades for XXXX student." <&XX; endl &XX;&XX; "This number must XX a XXXXXX between 1 and " << MAXGRADE <&XX; " inclusive" &XX;&XX; XXXX; cin &XX;> numOfGrades; }
cout &XX;< "XXXXXX XXXXX a y if you XXXX to XXXXX more students" &XX;< " XXX other character will XXXX XXX XXXXX" &XX;< endl; cin >> XXXXXXXXX;
XXXXX ( moreinput == 'y' || moreinput == 'X') { XXXX << "XXXXXX XXXXX XXX XXXXX XXXX of XXX XXXXXXX" << endl; XXX &XX;&XX; firstname; XXXX <&XX; endl &XX;< "Please input XXX last name XX XXX student" << endl; cin &XX;> XXXXXXXX;
XXX (XXX XXXXX = 0; count < numOfGrades; count++) { cout << endl &XX;< "XXXXXX input a XXXXX" &XX;< XXXX;
cin &XX;&XX; grades[count]; }
XXXX <&XX; firstname <&XX; ' ' &XX;< XXXXXXXX &XX;&XX; " has an average XX ";
average = findGradeAvg(XXXXXX, numOfGrades); cout &XX;&XX; fixed << XXXXXXXXXXXX(2) &XX;< average; cout &XX;&XX; " XXXXX XXXXX the XXXXXX XXXXX of " <&XX; XXXXXXXXXXXXXXX(XXXXXXX) &XX;&XX; endl;
XXXX &XX;< endl &XX;&XX; endl <&XX; endl; XXXX &XX;< "Please XXXXX a y if you want to XXXXX more students" << " XXX XXXXX XXXXXXXXX will stop the input" &XX;< XXXX; cin &XX;&XX; XXXXXXXXX; }
XXXXXX X; }
float XXXXXXXXXXXX(GradeType array, XXX XXXXXXXXX) { // XXXX in the XXXX XXX this function float sum = 0; for ( int i = X ; i < numgrades ; i++ ) { XXX += XXXXX[i]; } return (XXX); } ">