public class MathFunctions { public double computeGPA(int qualityPoints, int totalHours) { double gpa = 0.0; /*Do not change*/ /*ATTENTION: CODE GOES HERE*/ //calculate GPA here: gpa equals quality points divided by total hours //store GPA in 'gpa' variable declared above return gpa; /*Do not change*/ }// end computeGPA method public static void main(String[] arg) { /* Alter values for testing the validity of your formula*/ int qpoints = 48, tothours = 12; System.out.println("Compute GPA given quality points and total hours"); System.out.print("Quality Points = " + qpoints + " and "); System.out.println("Total Hours = " + tothours); MathFunctions mf = new MathFunctions(); double result = mf.computeGPA(qpoints,tothours); System.out.println("Grade Point Average is " + result); }// end main method }// end class MathFunctions