Question
Here is the code I have so far: http://codepad.org/2YZ6mulF but I am having trouble getting it to work, if someone could help me. The instructions for the program are below however the code in the link above is already mostly completed, it just has errors I need help with. Thank you. INSTRUCTIONS The program should read test scores students received on a quiz into an array. Assume that scores for up to 30 students could be entered. Input will stop when the sentinel value -1 is entered.1 Write the following four functions:
Explanation / Answer
#include using namespace std; const int MAX=30; void readScores(int*,int*); void countDistribution(int*,int*,int*,int*,int*,int*,int*); void getSameGrades(int*,int*,int*); void display(int*,int*, int*,int*,int*,int*,int*); int main(){ int students[MAX]; int exactGrade[101]; int count; int a,b,c,d,f; readScores(students,&count); countDistribution(students,&count,&a,&b,&c,&d,&f); getSameGrades(students,&count,exactGrade); display(&count,&a,&b,&c,&d,&f,exactGrade); cin.get(); return 0; } void readScores(int* arr, int *size){ int num; *size=0; cout