As another parameter to be considered, student services would like to make a comparison between all the available programs; however, not only the number of courses in each program is different the weight of each course that is represented as the number of units or credit hours are different; therefore, the number of units for each course would be another user input.
To calculate the average grades in each program/department, the given formula below will be used:
Average Grade in Each Program = (Sum(Credit Hour * Course Average Grade))/The total number of Credit Hours in Each Program
The credit hours range of the different courses is from 1 credit hour to 5 credit hours which represents the importance and the weights of each course. Please, take into consideration the wrong input from the user such as negative numbers, zero, and numbers more than 5.
You need to make sure the least amount of memory will be used by this application.
Your code must have a very clean structure, separated and determined functions, and must have brief comments explaining each section of your code.
C program
As another parameter to be considered, student services would like to make a comparison between all the available programs; however, not only the number of courses in each program is different the weight of each course that is represented as the number of units or credit hours are different; therefore, the number of units for each course would be another user input.
To calculate the average grades in each program/department, the given formula below will be used:
Average Grade in Each Program = (Sum(Credit Hour * Course Average Grade))/The total number of Credit Hours in Each Program
The credit hours range of the different courses is from 1 credit hour to 5 credit hours which represents the importance and the weights of each course. Please, take into consideration the wrong input from the user such as negative numbers, zero, and numbers more than 5.
You need to make sure the least amount of memory will be used by this application.
Your code must have a very clean structure, separated and determined functions, and must have brief comments explaining each section of your code.
C program