Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
Question 2. (Student java, tester java) (15 marks) Create a Student dass, 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 bttps://aurentian.calcranscripta Example, a GPA of 6.8 would return "70% to 74% Get the GPA a5 ? 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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions