View the step-by-step solution to:

Write the class CompletedCourse, which represents a course a student has taken and completed. You should appropriately decide which methods to...

Write the class CompletedCourse, which represents a course a student has taken and completed. You should appropriately decide which methods to provide.

public final class CompletedCourse {


public final String courseName;

private final int term;

private final int year;

private final int units;

private final int letterGrade;


...

What to do?

...

}

Furthermore, write getGPA, a function that takes in an array of CompletedCourses and returns the GPA. each letter grade is assigned a numeric score between 0 and 4 as normal.

The GPA is a weighted average of these scores, and the weighing is proportional to the course units.

public class Test {

public static double getGPA(CompletedCourse[] course_arr) {

...

What to do?

...

} }

Top Answer

Input: letterGrade = 4... View the full answer

gpa-o.JPG

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online