Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A class of 10 students took a quiz. The grades (integers in the range 0 to 100)

ID: 440555 • Letter: A

Question

A class of 10 students took a quiz. The grades (integers in the range 0 to 100) for this quiz are generated by random function. Calculate and display average, highest grade and lowest grade. Please use array to store the grade for students and use functions to calculate the average of the class and the highest grade in the class. Student can follow the steps below: 1. Define 10 elements array to stores the grades for students 2. Use random function to generate the grade (between 0 and 100) for each student 3. Define a function

Explanation / Answer

#include #include #include using namespace std; //fxn prototype double average(int,int); int highest(int[],int); int main(){ const int STUDENTS=10;//number of students int grades[STUDENTS]; int total=0; srand(time((unsigned int)NULL));//seed time //get random grades and sum them for(int i=0;i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote