Question: Assignment Instructions for the Student Class Implementation Objective: Implement the Student class to manage student names, an array of grades, and to calculate average grades

Assignment Instructions for the Student Class Implementation Objective: Implement the Student class to manage student names, an array of grades, and to calculate average grades and letter grades. Your implementation must pass the provided JUnit tests. Class Structure and Requirements : Private Variables : String name: To store the student's name. double grades: An array to store the student's grades Decide if any other private variables are necessary for calculating the average or letter grade. Constructor : The constructor should accept a student's name and the size of the grades array as parameters Public Methods to Implement : setName(String name): Update the student's name. getName(): Return the student's name setGrade(int index, double grade): Update the grade at the specified index in the grades array getGrade(int index): Return the grade at the specified index. getGrade): Calculate and retum the average grade from the grades array getLetterGrade(int index): Return the letter grade for a specific grade based on a grading scale. getLetterGrade(): Calculate and return the overall letter grade based on the average grade.

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!