Unique index integer fieldsnbspuse at least 5 other fields


Create a class that can be used to test data structure - similar to the StudentA.java example found shown below:

StudentA.java

Note that this class will be used in the projects in the rest of this course to test various data structures and algorithms

The following are requirements for this homework:

  • Unique index integer fields
  • Use at least 5 other fields of various, including at least one of each of String, int and double types.
    • assume that the String's have no spaces within them
  • Write a method that will create an array of N random instances of this class, where N is an integer parameter to this method
  • Provide a toString method that will format an instance of this class nicely
  • Provide appropriate constructors
  • Write methods that will write and read text files of this class
    • to make this easy, assume that the first line of the file is the number of elements in the file
    • make the file one line per entry
    • use spaces as field delimiters in the files
    • use the toString method of the class to write to the file
  • Provide a good GUI interface to control and test this class, at a minimum:
    • use buttons to control the functions available
    • use JFileChoose for selecting input and output files
    • use a JTextArea and JScrollPane to create a scrolling text area for output
    • the window should resize nicely - use BorderLayout with the text area in the center

Submit your java file(s) along with your test plan and demonstration of successful compilation and running for all test cases to the homework 1 submission area.

Attachment:- HW1.pdf

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Unique index integer fieldsnbspuse at least 5 other fields
Reference No:- TGS01348440

Now Priced at $15 (50% Discount)

Recommended (98%)

Rated (4.3/5)