Question: PLEASE!!!! I need help!!!!!!! Create a Java project in Eclipse called HW_03-SortingClasses Add a class to your project called Tester and include the main() method

PLEASE!!!! I need help!!!!!!!

Create a Java project in Eclipse called HW_03-SortingClasses

Add a class to your project called Tester and include the main() method

Open the HW-03_Data.txt file and review the data. Your job for this homework is to write the code that will import this file into your program. You are to create the properties in your Student class that will store the data in the file. Remember, one row read in belongs to one instance of the Student class. In other words, the Student class should be able to store one row from the file.

Add a class called Student to your project. You will add the following to the Student class

Private properties

Constructors

Workhorse, Copy constructor

A special case constructor that accepts a String value that is one row from the file

A special case constructor that accepts a String array that contains the values of one row from the file

A special case constructor that accepts a RandomAccessFile object which is a reference to the open file.

Methods

clone(), equals()

toString() (return a well formatted string, not the default, that displays some not all fields)

Getters and Setters. Note: you should check for valid yearInSchool and manually fix any problems that exist:

Freshman, Sophomore, Junior, Senior, Graduate Student, Male, Female, GPA between 0.00 and 4.00

Make it so the class can be sorted by the combination of city, state, zip, university, and lastName (hint: string theses all together as one longer string and then compare)

In your Tester file write the code to import your file into your system by having an ArrayList that can store Student objects. Once imported, write the code that does the following:

Sorts the ArrayList and Prints the first 5 records from the ArrayList

Finds and prints the GPA for Harbron Louella in the form: Harbron Louella 3.00

Prints the average by gender

Prints the average of all years in school

This is the link to "HW-03_Data.txt".

https://docs.google.com/document/d/15RJDHXtR2G1R4vQxvSy1woNa6WklOC5DhoSzSzus_XI/edit

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!