Question: C++ source code with comments, pseudo code at top of program: This assignment will require you to write a program that will keep track of
C++ source code with comments, pseudo code at top of program:
This assignment will require you to write a program that will keep track of a test score for each (4) student. This program will make use of two arrays. The two arrays are: Array of strings with the students names Array of doubles with the students test score Note that the student name at index 0 of the first array will have the test score at index 0 of the second array. Both arrays must be dynamically allocated using a pointer. The size of the arrays are based on the users input, so the program must ask for how many students. The program must obtain the name of the student and that students test score from the user. Once all the data is entered, the data will be sorted by scores in ascending order. Both arrays must be sorted so that the student still has the same test score. So, both are sorted at the same time. The program will also display the sorted array along with the test score average. All methods/functions will use pointers as parameters and use only pointer notation and pointer arithmetic, not array notation. Required Method/Functions: void GetGrades(double* scores, string* students, int size); void DisplayGrades(double* scores, string* students, int size, double avg); void Sort(double* scores, string* students, int size); double Average(double* scores, int size); Validation requirements: Do not accept a negative number of students to be entered (used for the size of the arrays). Do not accept a negative test score. If invalid prompt the user for a new test score until they enter a valid test score; use a loop.
Output should appear as:
Student Score Richard 67.40
Mark 67.83
Jane 72.65
Sandy 95.32
Class average is: 75.80
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
