Consider a (Very small) class with the following students and their GPA's. Student name GPA Alfonso Bedoya
Fantastic news! We've Found the answer you've been seeking!
Question:
Student name GPA
Alfonso Bedoya 3.43
Tonya Harding 2.77
Warren Harding 2.30
Warren Piece 3.25 mm“
Write a MATLAB program, ProcessStudents.m, that constructs students, a one-dimensional array of structures with fields named first name. last name, and gpa. It should then loop through each element in the array and call a function Display Student Record (the Student) (which you also need to write) that displays data for each student on the screen. This function should take a single student structure as an argument.
function DisplayStudentRecord(theStudent) % function Display_StudentRecord(theStudent) % displays theStudent.firstname, theStudent.lastname, and theStudent.gpa
Related Book For
Introductory Statistics Exploring the World Through Data
ISBN: 978-0321978271
2nd edition
Authors: Robert Gould, Colleen Ryan
Posted Date: