Question: // Client application class and service class Create a NetBeans project named StudentClient following the instructions provided in the Starting a NetBeans Project instructions in

// Client application class and service class Create 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 StudentC lient 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; publi c 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 /* U sing 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 struc ture 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 num ber 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 c alls 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 p rints an error message if new value is either less than 0 or greater than 4.0 . setGpa does not change the valu e 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 boolean Compares two Student objects for the same field values return s 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 ac count for Programming Exercise 3 .

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!