Results 1 to 4 of 4
- 03-08-2009, 02:20 PM #1Member
- Join Date
- Mar 2009
- Rep Power
hi friends please help me regarding writing the following progaram
i need to write the java program like this.
Write a small record management application for a school. Tasks will be Add Record, Edit Record, Delete Record, List Records.
Each Record contains: Name(max 100 char), Age, Notes(No Maximum Limit)
No database should be used. All data must be stored in one or two files.
Listing records should print the names of the users in alphabetical order.
The best way to learn java is to make an attempt to do this on your own first, then come back with your code and any specific questions you have regarding your code. A key is to break any big problems into little problems and solve each little problem one at a time: For eg:
- create the Record class including a decent toString method
- create a class for holding and manipulating a collection of Records
- create code for reading and writing to disk
If your problem is that you have absolutely no idea where to begin, then you must talk to your instructor and get some one-on-one help. Best of luck!
Last edited by Fubarable; 03-08-2009 at 03:57 PM.
- 03-08-2009, 03:54 PM #3
I would also suggest you to sit down an write the requirements down and first design your program on paper. For example....
The first thing that would have to be down is the display the option menu. So now you know you have to write a method that display the menu. Then, the program has to capture the user's input. Etc.. when it's all designed on paper , you then can commit grey matter to code.
Also, when developing your code, do it in managle bite size pieces. First, the menu options (test it), then user input (test it), then the open file method (test it), etc...
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
Chris makes a good point. We often see folks post their code that is full of tons of errors as they have not followed this simple rule: never try to add good code to bad. Only add code to your program in small batches, and make sure your current code compiles without error before even considering adding any more to it.
edit: I will add that for future reference, you'll probably want to post your questions in the beginner's forum. Please don't repost this question as we should keep this current thread active right here, but if you have a new question unrelated to this one, then ask in the Beginner's.
Again, best of luck!
- By bihag in forum IntroductionsReplies: 3Last Post: 01-18-2009, 04:23 PM
- By aditya in forum IntroductionsReplies: 1Last Post: 10-28-2008, 09:16 AM
- By ms987654321 in forum Web FrameworksReplies: 1Last Post: 07-19-2008, 02:11 PM
- By karthikraja.pm in forum IntroductionsReplies: 2Last Post: 03-29-2008, 06:08 AM
- By Thulasiraman in forum IntroductionsReplies: 3Last Post: 01-23-2008, 06:12 AM