Answered step by step
Verified Expert Solution
Question
1 Approved Answer
An esteemed computer science professor, oversees a dynamic roster of students each semester, ensuring their academic growth through a series of exams. In her course,
An esteemed computer science professor, oversees a dynamic roster of students each semester, ensuring their academic growth through a series of exams. In her course, she administers exactly four exams. At the semester's end, she implements a unique grading policy: she drops the lowest exam score from each student's record and calculates their average grade accordingly.
Your task is to develop a program that models that grading system. Design a class named "Student" with the following attributes: studentName the name of the student average the calculated average grade and grades an array storing the scores of the four exams You may include additional attributes as needed. Implement appropriate setter and getter methods for these attributes.
Furthermore, your program should include a method to compute and display a student's average grade after dropping their lowest exam score. Once each student's average grade is determined, the program must identify the topperforming student and output their name along with their class average as shown in the sample screenshots
Provide the necessary Java code to achieve these functionalities. Your submission must include both the main class and the student class.
The partially completed code for the main class is given below:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started