Uploaded by Emilys Martinez

Lab 08 C++

advertisement
Lab 08 C++
Using the flowchart for Lab #08 as a guide, write a C++ program that does the same
thing. Your C++ program must use functions to input the scores, compute the average,
and find the index of the highest score.
Remember Raptor arrays start at 1, but C++ arrays start at 0.
Here is what the function header for inputScores should look like;
void inputAnswers(int studentIds[ ], double scores[])
The getAverage function will look like;
double getAverage(double scores[])
The getHighIndex function will be similar, but will return an int.
There is no extra credit for the C++ version of this assignment, but you may, if you wish,
submit a program which is the C++ equivalent of the extra credit version of the Lab 08
Flowchart.
Test your program to make sure it works properly, and then copy and paste the C++ code
into the Write Submission box of the assignment.
© 2016-2020 Paul Koester, Tarrant County College
Download