Write a user-defmed function that calculates grade point average (GPA) on ascale of 0 to
Chapter 7, Problem 10(choose chapter or problem)
Write a user-defmed function that calculates grade point average (GPA) on ascale of 0 to 4, where A = 4, A-= 3.7 , B+ = 3.3 , B = 3, B- = 2.7 ,C+ = 2.3 , C = 2, C- = 1.7 , D+ = 1.3 D = 1, and E = 0. For the functionname and arguments, use av = GPA ( g 1 h). The input argument g is a vectorwhose elements are the numerical values of the grades. The input argument his a vector with the corresponding credit hours. The output argument avis thecalculated GPA. Use the function to calculate the GPA for a student with thefollowing record:
Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.
Becoming a subscriber
Or look for another answer