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 16:00
Areal estate agent earns $32,000 a year plus $1,000 for each apartment he sells. write an equation that shows the relationship between the number of apartments abe sells,n, and the total amount he earns in a year,e. what is the total amount abe would earn from selling 10 apartments in one year
Answers: 3
question
Mathematics, 21.06.2019 16:40
Which is the graph of f(x) = (4)x? image for option 1 image for option 2 image for option 3 image for option 4
Answers: 1
question
Mathematics, 21.06.2019 20:00
The two square pyramids are similar. find the total volume of both pyramids if the ratio of their surface areas is 9/16
Answers: 3
question
Mathematics, 21.06.2019 20:30
If a 36 inch yardstick casts a 21 foot shadow, how tall is a building whose shadow is 168 feet? what is the scale factor
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
Questions on the website: 13722367