Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 2. (Student.java, tester.java) (15 marks) Create a Student class, which contains the following A constant first and last name associated with the student, which

image text in transcribed
Question 2. (Student.java, tester.java) (15 marks) Create a Student class, which contains the following A constant first and last name associated with the student, which is set in the constructor A constant ID (integer) of the Student, which is unique and automatically set and generated by the constructor -The GPA (double) of the student, which is initially 10 The class should have appropriate functions to Modify the GPA of the student (do not allow values below 0, or above 10) Get the GPA as a range of percent (refer to https://laurentian.ca/transcripts) Example, a GPA of 6.8 would return "70% to 74%" - Get the GPA as a GPA -Get the full name associated with the student -Get the ID associated with the student Finally, (in tester.java) have a main method which creates at least 5 student objects. Test all the functionality by prompting the user to enter inputs appropriate for testing your methods and constructors. Remember, to do all input and output in your main method. Pass the input to your methods and constructors, and collect the results using assignment statements. You don't need to do any input checking in the main method. I suggest you write and test your methods one at a time. You can get part marks for the methods that work

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Describe the role of HR in succession management.

Answered: 1 week ago