subject
Mathematics, 17.04.2021 16:10 prettygirl321490

A professor will assign grades to his class as follows: any score more than 15 points above average will receive an A, from 0-15 points (inclusive) above average will receive a B, from 0-15 points below average will receive a C, and more than 15 points below average will receive a D. Write a Matlab function called grades .m which will take a single input, which is an array of grades, and return 4 outputs. The first output is the number of A's in the class, the second is the number of B's, the third is the number of C's, and the fourth is the number of D's. As a check, the Matlab commands t=l:140; [A, B,C, D]=grades(75+25*cos(t) .*sin(3*t)) should give 20 A's, 57 B's. 38 C's, and 25 D's. (Hopefully the grade distribution at the end of this course will be somewhat better!) Hints: Remember that the Matlab mean command will calculate the average of an array of numbers. You will need a loop with a nested conditional to do the counting.

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 22:00
What is the solution to the equation e3x=12? round your answer to the nearest hundredth
Answers: 1
question
Mathematics, 21.06.2019 22:00
What is the equation of the line that is parallel to the line with the equation y= -3/4x +1 and passes through the point (12,-12)
Answers: 1
question
Mathematics, 22.06.2019 01:30
Adriana had a garden where he measured the height of a corn plant. what. on the first day,it was 145 cm tall.after 2 weeks is grew by 23 cm.what is the height of the corn plant
Answers: 1
question
Mathematics, 22.06.2019 02:00
Taylor graphs the system below on her graphing calculator and decides that f(x)=g(x) at x=0, x=1, and x=3. provide taylor with some feedback that explains which part of her answer is incorrect and why it is incorrect. f(x)= 2x+1 g(x)= 2x^2+1
Answers: 2
You know the right answer?
A professor will assign grades to his class as follows: any score more than 15 points above average...
Questions
question
Mathematics, 23.06.2020 22:01
question
Mathematics, 23.06.2020 22:01
question
Mathematics, 23.06.2020 22:01
question
Biology, 23.06.2020 22:01
question
Mathematics, 23.06.2020 22:01
question
Mathematics, 23.06.2020 22:01
Questions on the website: 13722367