Java Assignment: Student Management Console App
Objective:
This assignment will help you practice the basics of Java programming using Eclipse IDE.
You will learn how to work with classes, objects, arrays, and user input/output.
Assignment Requirements:
1. Create a Java class called `Student` with the following fields:
- `String name`
- `int rollNumber`
- `float marks`
2. Create another class `StudentApp` with a `main()` method:
- Allow the user to enter data for 3 students (name, roll number, marks)
- Store the student details in an array
- Display all student records
- Print the name of the student with the highest marks
Expected Console Output:
Enter name of student 1: Anjali
Enter roll number: 101
Enter marks: 88.5
Enter name of student 2: Satheesh
Enter roll number: 102
Enter marks: 91.0
Enter name of student 3: Reshma
Enter roll number: 103
Enter marks: 84.0
Student Records:
Anjali(101) - 88.5
Satheesh(102) - 91.0
Reshma(103) - 84.0
Topper: Satheesh with 91.0 marks
Optional Challenge:
- Allow adding more than 3 students using ArrayList
- Sort students by marks
- Use a menu to choose: Add / Display / Exit
What to Submit:
- Java project folder or .zip file
- Screenshot of Eclipse console output
- Code with proper indentation and comments