Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 13:30, ashleypere99
Jane’s team is using the v-shaped model for their project. during the high-level design phase of the project, testers perform integration testing. what is the purpose of an integration test plan in the v-model of development? a. checks if the team has gathered all the requirements b. checks how the product interacts with external systems c. checks the flow of data in internal modules d. checks how the product works from the client side
Answers: 1
image
Computers and Technology, 22.06.2019 15:30, alexdub9649
What is a costume plot? why is it important to a film or theater production?
Answers: 2
image
Computers and Technology, 22.06.2019 17:00, bnvghnbbb
Match the following. 1. show grouping of word processing tasks that can be performed quick access toolbar 2. shortcut location for commonly used elements scroll bars 3. organized commands used to modify documents ribbon 4. used to align and measure content in a word screen zoom bar 5. vertical and horizontal bars that are used to navigate through a document contextual tabs 6. displays the name of the document in use ruler 7. allows users to enlarge or shrink a visual of a word document title bar
Answers: 2
image
Computers and Technology, 23.06.2019 03:30, natalie2sheffield
Hashtags serve to identify the topic of a given tweet true false
Answers: 2
Do you know the correct answer?
1. for this exercise, you will create a student class to hold student data. in previous exercises, w...

Questions in other subjects: