CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • SQL Server Modeling Services with Microsoft Visual Studio 2010 Beta 2
  • Faltering Windows support
  • Internet Explorer 8 Click Clever Click Safe
  • Release Candidate 2 for ASP.NET MVC 2

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Java Programming > Java Programming
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Java Programming Ask your Java programming question and help out others with theirs.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old November 19th, 2009, 10:29 PM
    starwok starwok is offline
    Junior Member
     
    Join Date: Nov 2009
    Posts: 7
    starwok is an unknown quantity at this point (<10)
    "friends database" program

    Hi, I've read the rules for this website and i'm aware that we should not expect people to do our homework. But I really need help on this program.. and I'm not sure how to start it, and it's last minute help please.

    I'm suppose to do this using sorting algorithm..so it asks to creat a friends database application that maintains a file of friend objects that contain names, telephone numberrs, and email adresses..etc. The friends application should load friend records from a file and then allow the user to add new friends, delete friends, display a list of all friends by either first naem or last name, and search for a friend. Well the output should look something like this:

    1. add a friend
    2. display a friends by last name
    3. display a friends by first name
    4. find a friend
    5. delete a friend
    6. quit.

    Yea.. 've been trying to at least find some examples that are similar to this type of program.. but I didn't really find any. So any help, or similar type of examples/codes for me. thank you!
    Reply With Quote
      #2    
    Old November 20th, 2009, 07:59 AM
    ProgramThis ProgramThis is offline
    Member +
     
    Join Date: Feb 2008
    Posts: 723
    ProgramThis is on a distinguished road (40+)
    Re: "friends database" program

    It is this late in the semester and you don't know where to start? How about:

    Code:
    public class Friend {
         //TODO: write sorting method
    
        //TODO: read file
    
         public static void main(String args[]) {
              
    
        }
    }
    Reply With Quote
      #3    
    Old November 20th, 2009, 07:46 PM
    dlorde dlorde is offline
    Elite Member
    Power Poster
     
    Join Date: Aug 1999
    Location: UK
    Posts: 9,371
    dlorde is a glorious beacon of light (400+) dlorde is a glorious beacon of light (400+) dlorde is a glorious beacon of light (400+) dlorde is a glorious beacon of light (400+) dlorde is a glorious beacon of light (400+) dlorde is a glorious beacon of light (400+)
    Re: "friends database" program

    Quote:
    Originally Posted by starwok View Post
    ... it's last minute help please.
    If you leave it to the last minute it's your problem, not ours.

    Quote:
    Yea.. 've been trying to at least find some examples that are similar to this type of program.. but I didn't really find any. So any help, or similar type of examples/codes for me. thank you!
    This isn't a coding service. There are pay sites where people will write code for you. We're not a search engine either. If you want examples, Google is your friend.

    We try to help people who get stuck with problems they can't solve when coding. If you post up your code and explain where you're stuck, we'll try to help you fix it.

    The only way to learn a new programming language is by writing programs in it...
    B. Kernighan & D. Ritchie
    __________________
    Please use [CODE]...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
    Reply With Quote
      #4    
    Old November 22nd, 2009, 02:24 PM
    starwok starwok is offline
    Junior Member
     
    Join Date: Nov 2009
    Posts: 7
    starwok is an unknown quantity at this point (<10)
    Re: "friends database" program

    This late in the semester? I just started this class.

    I never said it was your problem. and i've did tried googling and I couldn't find anything or maybe it's because my searching word wasn't correct. I already mentioned in my thread that "I know this isn't a homework service" website.... I know what i'm doing.
    Reply With Quote
      #5    
    Old November 22nd, 2009, 06:33 PM
    dlorde dlorde is offline
    Elite Member
    Power Poster
     
    Join Date: Aug 1999
    Location: UK
    Posts: 9,371
    dlorde is a glorious beacon of light (400+) dlorde is a glorious beacon of light (400+) dlorde is a glorious beacon of light (400+) dlorde is a glorious beacon of light (400+) dlorde is a glorious beacon of light (400+) dlorde is a glorious beacon of light (400+)
    Re: "friends database" program

    Quote:
    Originally Posted by starwok View Post
    I know what i'm doing.
    Cool, so why are you here? What was your question again?

    Learning is never done without errors and defeat...
    V. Lenin
    __________________
    Please use [CODE]...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
    Reply With Quote
      #6    
    Old November 26th, 2009, 11:34 PM
    starwok starwok is offline
    Junior Member
     
    Join Date: Nov 2009
    Posts: 7
    starwok is an unknown quantity at this point (<10)
    Re: "friends database" program

    Quote:
    Originally Posted by dlorde View Post
    Cool, so why are you here? What was your question again?

    Learning is never done without errors and defeat...
    V. Lenin
    Wow, you don't read the whole sentence, and you just take the last part "I'm know what I'm doing" ..... in the WHOLE sentence i said I know this is not a homework service site, im not expecting ppl to write this program for me <-- I know what im doing, as in im not stupid enough to think someone is gonna write it for me. Nevermind about the question.
    Reply With Quote
      #7    
    Old November 27th, 2009, 11:15 AM
    dlorde dlorde is offline
    Elite Member
    Power Poster
     
    Join Date: Aug 1999
    Location: UK
    Posts: 9,371
    dlorde is a glorious beacon of light (400+) dlorde is a glorious beacon of light (400+) dlorde is a glorious beacon of light (400+) dlorde is a glorious beacon of light (400+) dlorde is a glorious beacon of light (400+) dlorde is a glorious beacon of light (400+)
    Re: "friends database" program

    Quote:
    Originally Posted by starwok View Post
    Wow, you don't read the whole sentence, and you just take the last part "I'm know what I'm doing" ..... in the WHOLE sentence i said I know this is not a homework service site, im not expecting ppl to write this program for me <-- I know what im doing, as in im not stupid enough to think someone is gonna write it for me.
    I read it all - including the bit where you asked for examples and code. I also read the bit where you didn't describe any ideas of your own, or ask any specific questions, or post even the tiniest piece of code to show you were willing to try to write your own code.

    So what sort of help do you want?

    You asked for examples - why would we have examples? When we want examples, we search online. This is not a Google front end - if you want general examples of common code search for it like anyone else. You said you know what you're doing, but if that were true, you wouldn't be here posting what you posted.

    You might find this helpful.

    If you want help with code specific to your own assignment, post up your own attempt, ask specific questions and we'll help you fix it.

    Quote:
    Nevermind about the question.
    What question? You didn't ask a question

    Experience is a poor teacher: it gives its tests before it teaches its lessons...
    Anon
    .
    __________________
    Please use [CODE]...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

    Last edited by dlorde; November 27th, 2009 at 11:21 AM.
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Java Programming > Java Programming


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 11:00 AM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.