Question: Q 1 - Write a user - defined function that calculates grade point average ( GPA ) on a scale of 0 to 4 ,
Q Write a userdefined function that calculates grade point average GPA on a scale of to where and For the function name and arguments, use av GPAgh The input argument is a vector whose elements are the numerical values of the grades. The input argument is a vector with the corresponding credit hours. The output argument av is the calculated GPA. Use the function to calculate the GPA for a student with the following record:
tableGrade Do it using MATLAB SHOW THE CODE
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
