Question: Using MATLAB 11. Write a user-defined function that calculates grade point average (GPA) on a scale of 0 to 5, where A = 5, B

Using MATLAB
 Using MATLAB 11. Write a user-defined function that calculates grade point

11. Write a user-defined function that calculates grade point average (GPA) on a scale of 0 to 5, where A = 5, B = 4, C = 3, D 2, and F 0 . For the function name and argumen argument G is a vector whose elements are letter grades A, B, C, D, or F entered as a string (e.g.. 'ABACFB']). The input argument c is a vector with the corresponding credit hours. The output argument GPA is the calcu- lated GPA rounded to the nearest tenth (i.e., 3.75 is rounded to 3.8, and 3.749 is rounded to 3.7). Use the function to calculate the GPA for a student with the following record: ts, use GPA = GradeptAve (G,C) . The input Grade Credit Hours 4332 3 4 33

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!