Multidimensional array homework help

I have just been given this assingment, and have made the display menu! lol. i really have no clue as to what i am ment to do next, but need to do it within 5 weeks to pass my course, please can i have some serious help?

Thank you guys nd gals, much appreciated

Design a program that supports the range of functionality indicated in the menu below:

****************************************
*** ***
*** MENU ***
*** ***
*** 1. Read text file to array ***
*** 2. Display array ***
*** 3. Sort array ***
*** 4. Select a record for display ***
*** 5. Write array to file ***
*** 6. Exit program ***
*** ***
*** ***
****************************************
Your designs should include an appropriate range of flow charts, pseudo code and meaningful test schedules (see Grading Sheet below for further detail).

Based on your design, build your application.

Your program should include a wide range of Java statements, including multidimensional arrays, to respond effectively to the demands of the project requirement. Your source code must be formatted appropriately and include meaningful comments showing evidence of your understanding throughout. Your program must use the data below for testing. Note the first line [data] signals a valid data file. The second line stores the number of records in the data set. The blank lines separate the records, which have 4 fields.

[data]
4

Jones, Brian
Curriculum Leader
Computing and IT
Canterbury College

Marsden, Paul
Coordinator
Computing and IT
Canterbury College

Maphango, Ropa
Lecturer
Computing and IT
Canterbury College

Davies, Karl
Lecturer
Computing and IT
Canterbury College

If anyone can help me it would be a life saver,

Ricki
[2436 byte] By [rickilambert] at [2007-11-20 8:04:09]
# 1 Re: Multidimensional array homework help
When you absolutely dont know where to start, it is easiest to just start somewhere. In the "Menu" you listed, there are a number of things you can rehearse and explore... no need to climb the whole mountain at once. Especially when you have 5 weeks time.

Try reading from a file, for example, "Java InputStream" in google will lead you to a wide world of tutorials on that. Suns tutorials are great quality and span anything from here to china, least to a moderate degree. Really advice everyone to look there, first and second.

Once you managed reading the file, reading it to an Array is a fairly simple step forward. As to sorting, there are again numerous implementations and examples that you can look into, all over the web.

Reading suns tutorial on web will probably lead you to find out how writing to a file is done. Try these things one by one, and then consider how to put the pieces together.

To actually help you out... mutch is given already. You know that the file follows a certain form. First line has to be [data], second line tells you how many records to expect, and you also know, that each record is always 4 lines long, separated by an empty line.

So to ease it, look into BufferedReader or Scanner classes... and read Suns tutorial on Streams, it is good stuff.
Londbrok at 2007-11-10 2:15:35 >
# 2 Re: Multidimensional array homework help
Thankyou Very Much
rickilambert at 2007-11-10 2:16:35 >
# 3 Re: Multidimensional array homework help
Agree 100% w/ Londbrok. The key to this assignment is breaking it down into little do-able steps, and then tackling each step, one at a time. Solve each little step in its own java class and test the class before adding it to the whole. Step by step this project should be completed without too much difficulty. The fact that you are posting now and not 3 days before it's due (like 90+% of posts for homework help here) is a very positive sign.

Good luck.

ps: thought you were doing visual basic now. do they have you doing both vb and java?
petes1234 at 2007-11-10 2:17:34 >
# 4 Re: Multidimensional array homework help
I reckon sorting can be the toughest bit. Project specs did not enlighten the issue on "sort by what". While, this might be a bit far thrown rock, once you tackle the reading to array part... you could consider breaking the data into instances of say... person class. This person class would then have fields for name, occupation etc. This would make it easier for you to manage the sorting part, by any of the records.

If you want to try this, and the above descpription of the approach sound like total hebrew, throw the forum a line and well go throught it.
Londbrok at 2007-11-10 2:18:39 >