Lab Test Question
Lab Test Question
Methods
Case Study: Student Grade Management System
Problem Statement
You are hired as a software developer for a small educational institution. The institution wants to
implement a Student Grade Management System to manage and analyze student grades for a
course. The name of the system is <Your Name>’s Grading Management System. The system
should be able to:
Task
Write a Java program to implement the Student Grade Management System using static arrays
and static methods only. Do not create any objects. Your program should include the following:
1. StudentGradeManager Class
o Fields: grades (a static array of integers to store grades), studentCount (a static
integer to keep track of the number of students)
o Methods:
addGrade(int grade): Adds a new grade to the grades array.
calculateAverage(): Calculates and returns the average grade.
findHighestGrade(): Finds and returns the highest grade.
findLowestGrade(): Finds and returns the lowest grade.
displayGrades(): Displays all the grades.
Requirements
Example Output
markdown
Copy code
Yosh’s Student Grade Management System
1. Add a new grade
2. Calculate average grade
3. Find the highest grade
4. Find the lowest grade
5. Display all grades
6. Exit
Enter your choice: 1
Enter the grade: 85
Grade added successfully!
Guideline Scheme
Answer