Asmt 1
Asmt 1
System
Objective
Develop a Java console application that allows users to manage student grades efficiently. The
system should:
Functional Requirements
1. Student Class (Student)
Instance Variables:
o String name – stores the student’s name.
o int grade – stores the student's grade (0-100).
Constructor:
o Student(String name, int grade) – initializes the student’s name and grade.
Method:
o void display() – prints the student's name and grade in "Name: Grade" format.
2.1. Fields:
2.2. Constructor:
2.3. Methods:
✅ void displayStudents():
✅ double calculateAverage():
✅ void findHighestLowest():
Finds and prints the highest and lowest grades along with the corresponding student
names.
Non-Functional Requirements
✅ The program should handle incorrect inputs (e.g., invalid grades).
✅ Must follow OOP principles (separation of concerns, encapsulation).
✅ Use loops for input collection and processing.
✅ Use arrays to store student objects.
✅ The code should be modular (each task handled by a separate method).