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, 21.06.2019 19:30
Keep your choice of a major there is probably no single correct choice.
Answers: 1
question
Computers and Technology, 22.06.2019 10:40
When running anti-virus software , what could be a reason where recipitent is not guaranteed that data being streamed will not get interrupted?
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
question
Computers and Technology, 24.06.2019 00:20
Describe a data structures that supports the stack push and pop operations and a third operation findmin, which returns the smallest element in the data structure, all in o(1) worst-case time.
Answers: 2
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
Mathematics, 20.08.2019 16:30
question
Mathematics, 20.08.2019 16:30
Questions on the website: 13722360