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 : setNameString name: Update the student's name. getName: Return the student's name setGradeint index, double grade: Update the grade at the specified index in the grades array getGradeint index: Return the grade at the specified index. getGrade: Calculate and retum the average grade from the grades array getLetterGradeint 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
