Computers and Technology

// 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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:40, debo4965
Amain idea is supported, explained, or expanded on with a numbers b. a concluding statement c. details d. a topic sentence. im e paragraphs reset nex next
Answers: 2
image
Computers and Technology, 23.06.2019 22:30, meijorjay94p2u2zy
Apart from confidential information, what other information does nda to outline? ndas not only outline confidential information, but they also enable you to outline .
Answers: 1
image
Computers and Technology, 24.06.2019 21:00, Winzen07
Which device has the most limited computing functionality?
Answers: 1
image
Computers and Technology, 24.06.2019 21:30, Xghoued2056
Aobject is used for displaying the results of a question based on stored data. a. query b. report c. table d. form
Answers: 2
Do you know the correct answer?
// client application class and service classcreate a netbeans project named studentclient following...

Questions in other subjects:

Konu
Chemistry, 27.08.2019 04:30
Konu
Mathematics, 27.08.2019 04:30