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 20:00
Adam used 1072.4 gallons of water over the course of 7 days. how much water did adam use, on average, each day?
Answers: 1
question
Mathematics, 21.06.2019 22:40
(10. in the figure, a aabc is drawn tocircumscribe a circle of radius 3 cm ,such thatthe segments bd and dc are respectively oflength 6 cm and 9 cm. find the length ofsides ab and ac.
Answers: 3
question
Mathematics, 22.06.2019 01:30
Five friends found a dollar on the ground and decided they each should get 1/5 of it. what amount of money will each friend get? $0.05 $0.20 $0.30 $0.80
Answers: 2
question
Mathematics, 22.06.2019 01:40
Which statement is true about the extreme value of the given quadratic equation? a. the equation has a maximum value with a y-coordinate of -21. b. the equation has a maximum value with a y-coordinate of -27. c. the equation has a minimum value with a y-coordinate of -21. d. the equation has a minimum value with a y-coordinate of -27.
Answers: 1
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, 07.06.2021 22:00
question
Mathematics, 07.06.2021 22:00
question
Mathematics, 07.06.2021 22:00
question
Social Studies, 07.06.2021 22:00
question
Mathematics, 07.06.2021 22:00