Question: in java String[] letters = {A+, A, B+, B, C+, C, D+, D, F}; double[] grades = {4.00, 3.75, 3.50, 3.25, 3.00, 2.75, 2.50, 2.25,

in java

String[] letters = {"A+", "A", "B+", "B", "C+", "C", "D+", "D", "F"}; double[] grades = {4.00, 3.75, 3.50, 3.25, 3.00, 2.75, 2.50, 2.25, 0.00};

in java String[] letters = {"A+", "A", "B+", "B", "C+", "C", "D+",

ICS 108 - Object-Oriented Programming Assignment1 # 1 Develop a GPA calculator in which the user enters the number of courses then for each course he enters the course code, grade, and hours. Use the following formula to compute the GPA where nis the number of courses. XP-1 points * hours GPA = -, hours Your program should contain the following methods: /** Compute the points for a given letter grade */ public static double[] getPoints(String[] grade) /** Compute the mean of an array of double values */ public static double getGPA (double[] points, int[] hours) Here is sample run: Enter numbers of courses: 2 Enter code, grade, and hours: ICS104 A 3 MATH101 C+ 4 GPA Calculations Course Grade ICS104 A MATH101 B+ Points 3.75 3.5 Hours 3 4 The GPA is 3.61

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!