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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, kingethan08
Ihave an iphone 8plus should i get another phone like samsung note 9 or s9 ? ?
Answers: 2
image
Computers and Technology, 22.06.2019 16:20, Aleja9
It policy compliance and emerging technologies respond to the following: propose at least three control measures that organizations need to put in place to ensure that they remain complaint with emerging technologies and in a continually changing it environment. examine the correlation of effective configuration management and change control procedures to remain compliant with emerging technologies and it security changes.
Answers: 2
image
Computers and Technology, 22.06.2019 19:20, ChaosMind
Write a program that reads a file consisting of students’ test scores in the range 0–200. it should then determine the number of students having scores in each of the following ranges: 0–24, 25–49, 50–74, 75–99, 100–124, 125–149, 150–174, and 175–200. output the score ranges and the number of students. (run your program with the following input data: 76, 89, 150, 135, 200, 76, 12, 100, 150, 28, 178, 189, 167, 200, 175, 150, 87, 99, 129, 149, 176, 200, 87, 35, 157, 189.)
Answers: 3
image
Computers and Technology, 22.06.2019 23:30, kenken2583
Jaina and tomas are being considered as new tenants in an apartment. the landlord looks at their creditworthiness because he wants to be sure his new tenant pays the rent on time and in full. the table below summarizes the information that was on their applications. application information questions jaina tomas how many years have you had your job? 5 2 what is your monthly salary? $1,850 $2,500 how many credit cards do you have? 4 1 how much debt do you have? $13,000 $7,000 how many times were you late with payments on credit cards in the past year? 5 1 who will the landlord decide to be more creditworthy and why? tomas because the ratio of his debt to income is less. jaina because she has had her job longer, which makes her look more stable. jaina because she has more credit cards available to her. tomas because he makes more money per month.
Answers: 2
You know the right answer?
// client application class and service classcreate a netbeans project named studentclient following...

Questions in other subjects:

Konu
Mathematics, 30.03.2021 17:10
Konu
Mathematics, 30.03.2021 17:10
Konu
Biology, 30.03.2021 17:20
Konu
Computers and Technology, 30.03.2021 17:20