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 00:20
The pyraminx is a rubik's cube-type toy in the shape of a tetrahedron (not a pyramid). the pyraminx shown below has edges 15\,\text{cm}15cm15, space, c, m long and vertical height h=12.2\,\text{cm}h=12.2cmh, equals, 12, point, 2, space, c, m. the triangle drawn with dashed lines is a right triangle. what is the distance rrr? round your answer to the nearest tenth.
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
Suppose an astronomer discovers a large, spherical-shaped body orbiting the sun. the body is composed mostly of rock, and there are no other bodies sharing its orbit. what is the best way to categorize this body? a. planet b. moon c. comet d. asteroid
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
question
Computers and Technology, 23.06.2019 15:30
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
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
Mathematics, 24.03.2020 21:27
question
Chemistry, 24.03.2020 21:27
question
Mathematics, 24.03.2020 21:27
question
Mathematics, 24.03.2020 21:27
Questions on the website: 13722363