Question: #include using namespace std; #define SIZE 5 // Max size of the array int count = 0; // global variable to count student's // mark

 #include using namespace std; #define SIZE 5 // Max size ofthe array int count = 0; // global variable to count student's// mark info added into the array // Function prototypes. The formatName,press Enter, getGrade and // getTask were already implemented. Only need tocomplete the rest 17 after getTask. void formatName(string &); void press Enter();char getGrade(int); int getTask(); void addMarkInfo(string [], int [][2]); void listMarkInfo(string n[SIZE],int m[][2]); void viewResults(string n[SIZE], int m[][2], int s); void viewReports(string n[SIZE],int m[][2]); // Start main function int main() { // The next2 array variables are to be used as parallel array string names

#include using namespace std; #define SIZE 5 // Max size of the array int count = 0; // global variable to count student's // mark info added into the array // Function prototypes. The formatName, press Enter, getGrade and // getTask were already implemented. Only need to complete the rest 17 after getTask. void formatName(string &); void press Enter(); char getGrade(int); int getTask(); void addMarkInfo(string [], int [][2]); void listMarkInfo(string n[SIZE], int m[][2]); void viewResults(string n[SIZE], int m[][2], int s); void viewReports(string n[SIZE], int m[][2]); // Start main function int main() { // The next 2 array variables are to be used as parallel array string names [SIZE]; // 1 dimensional array to store student's names int marks[SIZE][2]; // 2 dimensional array to store coursework and final exam marks int task = get Task(); while (task != 5 ) { switch (task) { case 1: addMarkInfo(names, marks); break; case 2: listMarkInfo(names, marks); break; case 3: viewResults (names, marks, count); break; case 4: viewReports(names, marks); } task = get Task(); count); break; case 4: viewReports(names, marks); } task = getTask(); } return 0; } 1/ start user-defined functions implementations // function to format student's name so it has at least 25 Il characters including the trailing space bar characters void formatName(string &n) { int strlen = n.length(); if (strlen = 85) return 'A': if (m >= 70) return 'B'; if (m >= 55) return 'C'; if (m >= 40) return 'D' return 'E'; } 1/ only allow users to choose the option from 1 to 5 int sett 1/ only 5 levels of grades (A, B, C, D & E) char getGrade(int m) { if (m >= 85) return 'A'; if (m >= 70) return 'B'; if (m >= 55) return 'C'; if (m >= 40) return 'D'; return 'E'; } 1/ only allow users to choose the option from 1 to 5 int get Task() { int t = 0; cout 5) { cout > t; } cout using namespace std; #define SIZE 5 // Max size of the array int count = 0; // global variable to count student's // mark info added into the array // Function prototypes. The formatName, press Enter, getGrade and // getTask were already implemented. Only need to complete the rest 17 after getTask. void formatName(string &); void press Enter(); char getGrade(int); int getTask(); void addMarkInfo(string [], int [][2]); void listMarkInfo(string n[SIZE], int m[][2]); void viewResults(string n[SIZE], int m[][2], int s); void viewReports(string n[SIZE], int m[][2]); // Start main function int main() { // The next 2 array variables are to be used as parallel array string names [SIZE]; // 1 dimensional array to store student's names int marks[SIZE][2]; // 2 dimensional array to store coursework and final exam marks int task = get Task(); while (task != 5 ) { switch (task) { case 1: addMarkInfo(names, marks); break; case 2: listMarkInfo(names, marks); break; case 3: viewResults (names, marks, count); break; case 4: viewReports(names, marks); } task = get Task(); count); break; case 4: viewReports(names, marks); } task = getTask(); } return 0; } 1/ start user-defined functions implementations // function to format student's name so it has at least 25 Il characters including the trailing space bar characters void formatName(string &n) { int strlen = n.length(); if (strlen = 85) return 'A': if (m >= 70) return 'B'; if (m >= 55) return 'C'; if (m >= 40) return 'D' return 'E'; } 1/ only allow users to choose the option from 1 to 5 int sett 1/ only 5 levels of grades (A, B, C, D & E) char getGrade(int m) { if (m >= 85) return 'A'; if (m >= 70) return 'B'; if (m >= 55) return 'C'; if (m >= 40) return 'D'; return 'E'; } 1/ only allow users to choose the option from 1 to 5 int get Task() { int t = 0; cout 5) { cout > t; } cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!