Question: Write a MATLAB program that uses two arrays which contain information about students. You need to do the following - Define a 2-D array of

Write a MATLAB program that uses two arrays which contain information about students. You need to do the following

- Define a 2-D array of Student(5,4) that contains the data as followso Student(:,1)representsthestudentsID o Student (:,2) represents the students math course grade o Student(:,3)representsthestudentsmatlabcoursegrade o Student (:,4) represents the students sum of the two grades

- Define 1-D array of string Name(1,5) that contains the name of students

Name

ID

Math

Matlab

Sum of grades

Abdulla

11

40

50

90

Amna

22

50

30

80

May

33

25

50

75

Saeed

44

20

40

60

Jasim

55

38

30

68

- Reads the students data from student (ID, Math grade, Matlab grade and Name)

function [Student, Name] = read (size)

- Calculates the sum of grade of the students using the following formula sum_Grade = Math + Matlab

function [Student]=OverallGrade (Student, size)

- Find the student that has the highest sum of grades and prints the student information with the highest sum of grades.

function highestOverall (Student, Name, size)

- Display the arrays content on screen.

print(Student, Name,size)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!