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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started