Hashing Issue!
I'm required to produce a Hasing Index which centers around a class(Student) which represents a student who has a name and a course.
The program needs to use 3 classes:
1. Student class
Store the student details and calculates the hash index.
2. Storage class
Contains an array of Student objects and uses the hash index returened from the Student object.
The class should define a method which accepts an instance of the Student class to be stored
into the array of Student objects.
3. MainProgram Class
This class is the main program that accepts the user's input and stores the details using a storage
object. The program should keep requesting input until the list of students is full. Once the list is full, the list should be displayed for the user to see.
Notes
* I need to obtain the user input using
Java's JOptionPane class and the call showInputDialog method.Also there is no inheritance between the above three classes.
Could anyone please guide me on this! I'm not sure as to where I should start, how to incorporate an array that contians 24 elements etc...
Many thanks
Oliver