Question: SHOWW ALL MATLAB CODE (SCREENSHOT) Write a function called classAverage that takes in an array of numbers and, after normalizing the grades in such a

SHOWW ALL MATLAB CODE (SCREENSHOT)

Write a function called classAverage that takes in an array of numbers and, after normalizing the grades in such a way that the highest corresponds to 100, returns the letter grade of the class average. This curve is the same method used to generate normTests in Chapter Problem 2. The grade ranges are as follows:

average>= 90 => A

80<= average< 90 => B

70<= average< 80 => C

60<= average< 70 => D

average< 60 => F

For example: classAverage( [70 87 95 80 80 78 85 90 66 89 89 100] ) should return B Test your program for the following two cases:

classAverage( [50 90 61 82 75 92 81 76 87 41 31 98] )

classAverage( [10 10 11 32 53 12 34 74 31 30 26 22] )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!