0% found this document useful (0 votes)
2 views2 pages

Java Student Assignment Eclipse

The assignment requires creating a Java console application for managing student records, involving the creation of a 'Student' class and a 'StudentApp' class with a main method. Users will input data for three students, which will be stored in an array, and the application will display all records and identify the student with the highest marks. An optional challenge includes using an ArrayList for more students, sorting by marks, and implementing a menu for adding, displaying, or exiting the application.

Uploaded by

riyashini141204
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Java Student Assignment Eclipse

The assignment requires creating a Java console application for managing student records, involving the creation of a 'Student' class and a 'StudentApp' class with a main method. Users will input data for three students, which will be stored in an array, and the application will display all records and identify the student with the highest marks. An optional challenge includes using an ArrayList for more students, sorting by marks, and implementing a menu for adding, displaying, or exiting the application.

Uploaded by

riyashini141204
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like