Question: Sometimes a student has a certain GPA goal for some reason (maintain financial aid, avoid academic suspension, etc). Write a function file that takes as

Sometimes a student has a certain GPA goal for some reason (maintain financial aid, avoid academic suspension, etc). Write a function file that takes as inputs a student's current GPA, GPA goal, number of earned credit hours, and number of hours being taken this semester. The function should output the minimum semester GPA that the student can earn this semester in order to meet the GPA goal. Function C Reset D MATLAB Documentation 1 function semGPA = GPAneeds(currentGPA, goalGPA, earnedCredits, currentCredits) 2 %compute the sem GPA needed in order to end up with the goal GPA 3 sEMGPA = (goalGPA*(earnedCredits+totalCredits)-currentGPA*earnedCredits)/currentCredits end Code to call your function C Reset 1 GPAneeds(currentGPA, goalGPA, earnedCredits, currentCredits) Sometimes a student has a certain GPA goal for some reason (maintain financial aid, avoid academic suspension, etc). Write a function file that takes as inputs a student's current GPA, GPA goal, number of earned credit hours, and number of hours being taken this semester. The function should output the minimum semester GPA that the student can earn this semester in order to meet the GPA goal. Function C Reset D MATLAB Documentation 1 function semGPA = GPAneeds(currentGPA, goalGPA, earnedCredits, currentCredits) 2 %compute the sem GPA needed in order to end up with the goal GPA 3 sEMGPA = (goalGPA*(earnedCredits+totalCredits)-currentGPA*earnedCredits)/currentCredits end Code to call your function C Reset 1 GPAneeds(currentGPA, goalGPA, earnedCredits, currentCredits)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
