Question: Write a complete and syntactically correct Java client class named Exam3 that does the following: a.Creates an array of 10,000 students named studentArray . b.Sorts

Write a complete and syntactically correct Java client class named Exam3 that does the following:

a.Creates an array of 10,000 students named studentArray.

b.Sorts the studentArray by making one or more calls to the generic arrayBubbleSort (from the above question). The studentArray should end up so that the students are ordered first by class (Freshman, Sophomore, Junior, Senior) and then by GPA with the highest GPA first (4.0 to 0.0).

c. Prints out the sorted list of all the students in the studentArray.

A description of the Student class and the APIs for its available methods are listed below. Do not write the bodies for any of the methods listed in the Student API.

You cannot make any changes to the Student class.

You cannot add any additional methods to the Student class.

You must write any additional classes and their correspoinding methods that may be necessary to complete the client.

Student Class:

Instance Variables

private int id // student id

private String name // student name

private String standing; // Freshman, Sophomore, Junior, Senior

private double gpa; // 0.00 to 4.00

public Student( ); //returns an empty Student object

//with uninitialized

public Student randomStudent( ); //returns randomly generated student

// object with all instance variables

// initialized to legal values.

public int getId( );

public String getName( );

public String getStanding( );

public double getGpa( );

public void setId( int id );

public void setName( String name );

public void setStanding( String standing);

public void setGpa( double gpa);

public String toString( ); // returns a colon delimited String

public boolean equals( Object o );

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!