Reference no: EM132154595
a) Type help randint in the command window or check the MATLAB help file to see what the command, randint does and what the syntax is.
Then use this to generate a 50x4 array of integers between (and including) 50 and 100. Assume that these are the four test scores of 50 students. Then save this array in a file named GradeRoster.mat in your disk. Clear all data from your workspace.
b) Write a script to read the file GradeRoster.mat from disk. Then find the student who has the highest total in the class across all tests.
Display something like: Top scorer(s): Student # 4 (if the 4th student has the top score). It's possible that more than one student will share the top score, in which case, you need to display all top scorers. The commands max, min, sum, mean, sort, etc. can be useful for this as well as the following problems.
c) Write a script to read the file GradeRoster.mat and find out how many students got an A in the class, how many got B and how many failed (an average of 90 or above across all tests is an A, 80 to below 90 is a B, and below 60 is an F).
d) Repeat part-(b) if the professor decides to drop the lowest test score for each student.
e) Also find out how many students steadily improved throughout the course (i.e. each test score was equal to or better than the previous).