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 20:00
Which type of file can be used to import data into a spreadsheet?
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
Whats three fourths of 15(this is supposed to be in math but i clicked too fast)
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Write a program to analyze student’s scores. each student’s id and 4 original test scores are saved in the attached file “student_id_scores.txt”. assume there are exactly 15 students in the class.• the program first opens the file, reads student’s ids and scores from the file and saves them in two arrays: o create a one-dimensional string array “ids” to store the student’s ids.o create a (parallel) two-dimensional int array “scores” to store student’s original test scores. this array has 5 columns, the original 4 test scores should be saved in the first 4 columns, and the last column will be used to save the average score after the calculation in next step.• the program then retrieves test scores from the array “scores”, calculates average score and determines the final letter grade based on the rules in the table below for each student. assume average score is integer value.average score = (score1 + score2 + score3 + score4) / 4average score letter grade90 ~ 100 a80 ~ 89 b70 ~ 79 c60 ~ 70 d0 ~ 60 f• the average score should be saved back in the 5th column of “scores” array.• create a new parallel one-dimensional char array “grades” to save each student’s letter grade.• program also needs to find the number of a, number of b, number of c, number of d and number of f grade. as well as the highest, lowest and average score of the class.• finally, program will display all of the original scores and all results on the computer screen using the format shown as the sample output below.• the program must contain at least the following functions: (1) a function “getscores” to read and store data into “ids” and “scores” arrays.(2) a function “analyzescores” to calculate student’s average score, determine letter grade, get the number of a, b, c, d and f, find the highest, lowest and average score of the class.(3) a function “displayresults” to display all of the results
Answers: 3
You know the right answer?
// client application class and service classcreate a netbeans project named studentclient following...
Questions
question
Mathematics, 09.11.2019 15:31
question
Mathematics, 09.11.2019 15:31
question
Mathematics, 09.11.2019 15:31
Questions on the website: 13722360