Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2009
    Posts
    2
    Rep Power
    0

    Angry 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.


  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    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.

  3. #3
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    8

    Default

    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...

    Luck,
    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    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!

Similar Threads

  1. Hi Friends,
    By bihag in forum Introductions
    Replies: 3
    Last Post: 01-18-2009, 04:23 PM
  2. Hi friends
    By aditya in forum Introductions
    Replies: 1
    Last Post: 10-28-2008, 09:16 AM
  3. hello friends
    By ms987654321 in forum Web Frameworks
    Replies: 1
    Last Post: 07-19-2008, 03:11 PM
  4. Hi Friends
    By karthikraja.pm in forum Introductions
    Replies: 2
    Last Post: 03-29-2008, 06:08 AM
  5. Hi Friends ,
    By Thulasiraman in forum Introductions
    Replies: 3
    Last Post: 01-23-2008, 06:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •