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