subject

1. for this exercise, you will create a student class to hold student data. in previous exercises, we had a requirement that you name your class main. in this exercise, you must name your class student. your student class should include the following information: first name, last name, grade level, gpa, and a student id. grade level is an integer value ranging from 0 to 12, with 0 representing kindergarten. gpa is a decimal value ranging from 0 to 4.5. student id is an integer value. the first student id is 1, the second student id is 2, the next is 3, and so on. when a new student is created, your code should automatically initialize student id to the next integer value. for example, if the last created student's student id is 17, the next student id generated should be 18.your student class should include the following methods: student() - constructs a new student with first name and last name set to "none", grade level set to 0 and gpa set to 0.0. the student id should automatically be set to the next integer. student(string firstname, string lastname, int gradelevel, double gpa) - constructs a new student with variables initialized to the values specified. the grade level should only be allowed to range between 0 and 12 inclusive, 0 represents kindergarten. otherwise, set the grade level to 0. the gpa should only be allowed to range from 0.0 to 4.5, inclusive. otherwise, set the gpa to 0.0. the student id should automatically be set to the next integer. string tostring() - returns the student information as a string in the following format (notice line breaks after the first name and gpa): dovi, mrsgpa: 4.0grade level: 7 id # 4to test your code prior to submission, download the runner class student_runner_student. java to the same folder that holds your student. java implementation. run student_runner_student. main class and verify that the output matches the sample run below. feel free to change the runner to test different values to make sure your program fits the requirements. we will use a similar runner class to grade the program. sample runnone, nonegpa: 0.0grade level: 0 id # 1none, nonegpa: 0.0grade level: 0 id # 2none, nonegpa: 0.0grade level: 0 id # 3dovi, mrs. gpa: 3.4grade level: 7 id # 4when you are done coding and testing, copy and paste your entire student class into the code runner and press "run" to submit the exercise. use the "check answer" button to get additional feedback on your work.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:30
In this lab, you complete a prewritten c program that calculates an employee’s productivity bonus and prints the employee’s name and bonus. bonuses are calculated based on an employee’s productivity score as shown below. a productivity score is calculated by first dividing an employee’s transactions dollar value by the number of transactions and then dividing the result by the number of shifts worked.
Answers: 3
question
Computers and Technology, 23.06.2019 06:00
How can a user delete a drawing object
Answers: 1
question
Computers and Technology, 23.06.2019 06:40
How many nibbles can be stored in a 16-bit word?
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
Auser is given read permission to a file stored on an ntfs-formatted volume. the file is then copied to a folder on the same ntfs-formatted volume where the user has been given full control permission for that folder. when the user logs on to the computer holding the file and accesses its new location via a drive letter, what is the user's effective permission to the file? a. read b. full control c. no access d. modify e. none of the above
Answers: 1
You know the right answer?
1. for this exercise, you will create a student class to hold student data. in previous exercises, w...
Questions
question
Chemistry, 17.12.2020 04:20
question
Mathematics, 17.12.2020 04:20