Answered step by step
Verified Expert Solution
Link Copied!

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 top-performing 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:
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions