Optional Homework due Day Monday April 20
NO CLASS ON FRIDAY APRIL 17
In this program you will read number of students in the class, and number of classes each student is taking in
specific semester. This information will be stored in array of integers.
The user will enter grade for each course for each student and average grade per student will be found.
This information will be stored in the array of doubles.
See more details below:
Write the following functions:
- void make_array(int course[], int class_size) - makes an array of integers that store number of
courses per student.
- void print_array(int course[], int class_size) - prints an array of integers
- double ave_grade(int num_courses) - reads grade for each course, finds and returns the average grade
- void process_class(int course[], int class_size) - this function will create a new array of doubles, for
each student calculate the average grade and store in the new array, and then prints a new array at the end of
the function
- Write main to enter number of students in the class, call function make_array , print_array and
process_class