I need to know if the following code will work as it is now.....please help.....
ID: 3584159 • Letter: I
Question
I need to know if the following code will work as it is now.....please help.....?? #include #include using namespace std; // Global constants const int MAX = 20; const int ITEMS = 3; enum gradeAble {EXAM, LAB, HW}; // Function declarations // Get number of students from the user int getStudentCount( ); //Reads student scores into a 2D array void getScores(double score[MAX ][ITEMS ], int count); // Populates point average array with each students' weighted average score void calculatePointGrades(const double score[MAX ][ ITEMS],int count, double pointScore[ ]); // Populate letterGrade array with each students' // letter grade (90 and above = A, 80 to 89 B, etc.) void calculateLetterGrades(const double pointScore[ ], int count, char letterGrade[ ]); // Display table of scores, point averages, and letter grades // and overall averages for exam, labs and point grades void showGradeData(const double Score[ ][ITEMS],const double pointScore[ ],const char letterGrade[ ],int count); // Returns the average of specified number (count) items // in a double array with both a 2D array as an argument and a 1D array double double2ArrayAve(const double data[MAX ][ITEMS], int count, int gradeItem); double doubleArrayAve(const double data[], int count); int main( ) { //Main game loop //Enter your code hereExplanation / Answer
The program will work. Of course, It would not do anything until you actually write some code inside the main program. However there is no problem in function declarations and it would compile and run smoothly.