subject
Engineering, 25.02.2020 18:02 treypickich14

Add additional information to the student class below such as name, address, major, and contact information along with all the getters and setters (methods) needed to access all data. Submit your code along with a sample run of your program. Comment all your code. Cite any sources of information you use. Write a note on the process of completing the assignment in a Microsoft Word document. // ShowStudent. java // client to test the Student class class ShowStudent { public static void main (String args[]) { Student pupil = new Student(); // We need a new student named pupil pupil. setIDnumber(234); // We are setting pupil's ID number to 234 pupil. setPoints(47); // We are setting pupil's points to 47 pupil. setHours(15); // We are setting pupil's hours to 15 pupil. showIDnumber(); // We are showing pupil's ID number pupil. showPoints(); // We are showing pupil's points pupil. showHours(); // We are showing pupil's hourse System. out. println("The grade point average is " + pupil. getGradePoint()); // we are calculating pupil's GPA } } class Student // this is the student class { // the private data members private int idNumber; private int hours; private int points; // Constructor creates a new student Student() { idNumber = 9999; // a max ID points = 12; // starting out assuming 12 points hours = 3; // starting out assuming 3 hours } // end of constructor // the public get and set methods fro pulil specific information public void setIDnumber(int number) // pass in a number { idNumber = number; // assign the number } public int getIDnumber() // return a student ID { return idNumber; } public void setHours(int number) // pass in a number { hours = number; // assign the number to hours } public int getHours() // return the student's hours { return hours; } public void setPoints(int number) // pass in a number { points = number; // assign number to points } public int getPoints() // return the points { return points; } // methods to display the fields public void showIDnumber() { System. out. println("ID Number is: " + idNumber); } public void showHours() { System. out. println("Credit Hours: " + hours); } public void showPoints() { System. out. println("Points Earned: " + points); } public double getGradePoint() // calculate the GPA with internal data { return (points * 1.0 / hours); // simple integer division will truncate the decimal places } }

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Hydraulic fluid with a sg. of 0.78 is flowing through a 1.5 in. i.d. pipe at 58 gal/min. the fluid has an absolute viscosity of 11.8 x 105 lbf-sec/ft2. is the flow laminar, turbulent or within the critical range? give both a numerical reynolds number and a term answer.
Answers: 3
question
Engineering, 04.07.2019 18:10
Which of the following ziegler nichols tuning methods the response of the controller to a step input should exhibit an s-shaped curve? a)-open loop mode b)-closed loop mode c)-both modes (open & closed) d)-none of the modes (open & closed)
Answers: 3
question
Engineering, 04.07.2019 18:10
True or false (explain) (110)[111] is a slip system in bcc metals . the {111} family in fcc contains 8 planes. resolved shear stress (rss) in single crystals is just related to the applied stress. critical resolved shear stress (crss) in single crystal metals is direct proportional to the number of defects in the structure
Answers: 2
question
Engineering, 04.07.2019 18:20
A3-mm-thick panel of aluminum alloy (k 177 w/m-k, c 875 j/kg-k and ? = 2770 kg/m) is finished on both sides with an epoxy coating that must be cured at or above t,-150°c for at least 5 min. the production line for the curing operation involves two steps: (1) heating in a large oven with air at ts,0-175°c and a convection coefficient of h, 40 w/m2. k, and (2) cooling in a large chamber with air at 25°c and a con- vection coefficient of he 10 w/m2.k. the heating portion of the process is conducted over a time interval te which exceeds the ime required to reach 150°c by 5 min (h = r + 300 s). the coating has an emissivity of ? = 0.8, and the temperatures of the oven and chamber walls are 175 and 25°c, respectively. if the panel is placed in the oven at an initial temperature of 25°c and removed from the chamber at a safe-to-touch tempera ture of 37°c, what is the total elapsed time for the two-step curing operation?
Answers: 3
You know the right answer?
Add additional information to the student class below such as name, address, major, and contact info...
Questions
question
Arts, 11.01.2021 20:00
question
Mathematics, 11.01.2021 20:00
Questions on the website: 13722363