Question
I. Create java project II. Implementation of Student class: 1. add a class named Student with the following data fields (private) : ID, name, mark
I. Create java project
II. Implementation of Student class:
1. add a class named Student with the following data fields (private) : ID, name, mark
The mark should have value between 0 and 100 (0 and 100 are included)
2. Implement the constructors with no argument and with arguments
3. Implement getters and setters
4. Implement toString () that show all information about the student
II. Implementation of Test class
When you created the project, App class is created. This class contains the main method.
In this section, all implementation is done inside main method.
Consider the following three students:
student 1: 100, Mike, 60
student 2: 200, Joe, 96
student 3: 300, Linda, 33
the values represent the ID, the name and the mark.
1. In main method create an array of Student object and assign the above values.
2. In main method, add the code that does the following:
- Prompt the user to enter and ID of student.
- search for student with this ID and Display all information about this student using toString().
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started