Question: How would I implement these descriptions into a grade analyzer and student class in java? Student Data fields -name: String -grade: char -average: double -scores[5]:
How would I implement these descriptions into a grade analyzer and student class in java?
Student Data fields -name: String -grade: char -average: double -scores[5]: int Methods Constructor(s) Store the name of student Store the letter grade Store the average score Store the five exam scores Accessor methods if needed Modifier methods if needed +calculate Average(): void Determine the average of the five test scores for each student +calculateGrade(): void Determine each student's letter grade based on 90-100 A, 80-89 B, 70-79 C, 60-69 D, 0-59 F +generateOutput(Print Writer outFile): void Print out name, test scores, average, and letter grade to the output file Implement GradeAnalyzer class with the following description. The GradeAnalyzer class: . . Contains a Student object array that can hold up to 30 students. Uses Scanner and PrintWriter. Reads in the text file student_grades.txt" that includes student data for constructing Student objects. A sample "students_grades.txt file is attached to this lab on Brightspace and can be used for testing. Computes the average and letter grade for each student. Write student name, test scores, average, and letter grade to the output file "student_grade_report.txt". O
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
