Question: Write a user-defined function that calculates grade point average (GPA) on a scale of 0 to 4, where A = 4, A- = 3.7, B+

Write a user-defined function that calculates grade point average (GPA) on a scale 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 function name and arguments, use av = GPA ( g 1 h). The input argument g is a vector whose elements are the numerical values of the grades. The input argument h is a vector with the corresponding credit hours. The output argument avis the calculated GPA. Use the function to calculate the GPA for a student with the following record:
Write a user-defined function that calculates grade point average (GPA)

Grade A- Credit Hours 43323 433

Step by Step Solution

3.41 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Script file clear clc g37 3 33 2 0 4 13 4 h4 ... View full answer

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

Document Format (1 attachment)

Word file Icon

652-B-F-F-M (729).docx

120 KBs Word File

Students Have Also Explored These Related Finance Questions!