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