subject

// client application class and service classcreate a netbeans project named studentclient following the instructions provided in the starting a netbeans project instructions in the programming exercises/projects menu on blackboard. add a class named student to the studentclient project following the instructions provided in the starting a netbeans project instructions in the programming exercises/projects menu on blackboard. after you have created your netbeans project your application class studentclient should contain the following executable code: package studentclient; public class studentclient { public static void main(string[] args) { }}your service class should contain the following executable code: package studentclient; public class student { }in the studentclient application class main method code the instructions to perform the tasks indicated in the remarks : package studentclient; public class studentclient{public static void main( string [] args ){/* declare two object references of type student s1 and s2 and instantiate two student objects passing three arguments to the constructor for the class. use different values for each class object */ // your code here/* output the name, social security number and gpa of the student from object reference s1 using the appropriate accessor methods to obtain the data */ // your code here/* output the name, social security number and gpa of the student from object reference s2 using the tostring method to return the data */ // your code here /* using the equals method and a selection control structure (if statement), compare objects s1 and s2 and output an appropriate message indicating if the objects are equal */ // your code here/* using the appropriate mutator methods on student object s2, change the name, social security number and gpa to the same values as in object s1. use the set methods. */ // your code here /* again, using the equals method and a selection control structure (if statement), compare objects s1 and s2 and output an appropriate message indicating if the objects are equal */ // your code here}}in the student service class code the instructions to define your student service class structure with the appropriate constructors, mutator methods, accessor methods as well as a tostring and an equals method : package studentclient; public class student{/* declare three instance variables to represent the student name, social security number and gpa */ // your code here/* overloaded constructor method: allows client to set beginning values for name, ssn, and gpa. this constructor takes three parameters and calls mutator methods to validate new values */ public student( string newname, string newssn, double newgpa ) { // your code here } /* getname accessor method */ public string getname( ) {// your code here}/* setname mutator method */ public void setname( string newname ){ // your code here } /* getssn accessor method */ public string getssn( ) {// your code here }/* setssn mutator method */ public void setssn( string newssn ){ // your code here }/* getgpa accessor method */public double getgpa( ){ // your code here }/* setgpa mutator method: allows client to set value of gpa and prints an error message if new value is either less than 0 or greater than 4.0. setgpa does not change the value of gpa if newgpa is negative or greater than 4.0 */public void setgpa( double newgpa ){// your code here }/* tostring method returns student name, social security number and gpa */public string tostring( ) { // your code here}/* equals method returns booleancompares two student objects for the same field values returns a boolean, true if this object has the same field value as the parameter object */public boolean equals( object o ){ // your code here }}when your application has been successfully compiled and executed, zip the studentclient project folder. after the studentclient project folder has been successfully compressed, upload the zipped folder to your blackboard account for programming exercise 3.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
The width of a piece of rectangular land is 5m shorter rhan 1/3 of its length .find the width of the land if the length is 60m,150m.
Answers: 1
question
Computers and Technology, 22.06.2019 07:30
By refraining from constructing a building until they are certain that it will not cause harm to the environment, an organization is adhering to the
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
:you areto design the controller for alight that functions both as an ordinary light and also as a motion activated light and alarm. a.if the manual switch s is on, then the light l is on. b.besides the manual switch, there is a motion detector, m1, which activatesthis light.c.if motion is detected but the light is on anyway because s is on, only then a secondoutput a, an alarm, is turned on. d.the disable switch, d, disables the motion activated light and alarmbut leaves manual control operation of the light using switch s.(i)read the problem statement and clearly identify the inputs and outputs for the circuit you are designing. (ii)create the truth table for this system; include the light, alarm, switch, disable, and the motion sensor.(iii)draw a schematic of this system.
Answers: 1
question
Computers and Technology, 23.06.2019 10:50
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?
Answers: 1
You know the right answer?
// client application class and service classcreate a netbeans project named studentclient following...
Questions
question
Mathematics, 20.04.2021 01:10
question
Mathematics, 20.04.2021 01:10
question
Mathematics, 20.04.2021 01:10
question
Social Studies, 20.04.2021 01:10
question
Mathematics, 20.04.2021 01:10