CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2009
    Posts
    7

    "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!

  2. #2
    Join Date
    Feb 2008
    Posts
    966

    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[]) {
              
    
        }
    }

  3. #3
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    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.

    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]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

  4. #4
    Join Date
    Nov 2009
    Posts
    7

    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.

  5. #5
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    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]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

  6. #6
    Join Date
    Nov 2009
    Posts
    7

    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.

  7. #7
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    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.

    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
    .
    Last edited by dlorde; November 27th, 2009 at 11:21 AM.
    Please use &#91;CODE]...your code here...&#91;/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured