(15 pts) Jim Smith has come up with a conclusion that profes…
(15 pts) Jim Smith has come up with a conclusion that professors become easier graders as they get older. He has collected Data from five introductory courses by five different professors with different ages below. Course A B C NC Prof’s age Intro1 8 7 1 0 55 Intro2 25 57 33 2 40 Intro3 9 12 4 1 33 Intro4 12 2 0 0 55 Intro5 3 6 3 0 38 a) (5 pts) To verify his conclusion, Jim would like to calculate the weighted average of grades assigned in each class, where an ‘A’ has a weight of 4, a ‘B’ has a weight of 3, a ‘C’ has a weight of 2, and an ‘NC’ has a weight of 0. For example, in the case of Intro100, this weighted average would be 3.4, here is the calculation: ((8 * 4) + (7 * 3) + (1 * 2) + (0 * 0))/16 Now Write a single MATLAB statement to find a column vector containing the weighted average of the grades given in each of the five classes, and assign it to the variable fiveAverages b) (10 pts) Jim wants to know if there is at least one class with the highest grade point average that is taught by one of the oldest professor(s). Please help him write a program by printing ‘Yes, the highest grade is given by the oldest professors!’ or ‘No, it is incorrect!’
Read Details