Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For MatLab Programing language : Type help randi in the command window or check the MATLAB help file to see what the command, randi does

For MatLab Programing language :

image text in transcribed

Type help randi in the command window or check the MATLAB help file to see what the command, randi does and what the syntax is. Then use this to generate a 50 times 4 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. randi ([50 100], 50, 4): save GradeRoster.mat clear all 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)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions

Question

a. How will the leader be selected?

Answered: 1 week ago