Hi so one of the question on my lab explains to grade my pointer array into
a passing or failing.
Then the array should be passed to a function that calculates the number of passing scores (i.e. the score was 60 or above) and the number of failing scores (below 60).
Here is the function header:
void passOrFail(double* stuScores, int numScores, int & pass, int & fail)
{
//code to calculate the number of passing/failing scores
}
The program should then display the number of passing and failing grades from main().
I'm actually confused at this step, even though I should make a for( if statement), i don't understand how to properly code it with a pointer/array.