Thread: Need help on a C project.

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    2

    Need help on a C project.

    Hi

    I have a C project for school. I have no idea how I got into the program because I don't have the prequisites in math, and it's starting to haunt me. I'm having a hard time even coming up with a concept on how to do the math in this project.

    I need to have two things done for this project:

    A fibonacci generator (Where the person enters two numbers)
    A binary converter (where the person again enters a number)

    I can't even think of HOW to begin this math. I don't want someone to do it for me, I was just hoping someone could give me some hints or suggestions on where to go with this.

    Thank you.
    -Veda

    /edit: might've helped if I had put this in the C forum, not the C++ one, oops.
    Last edited by Veda; 10-15-2002 at 10:41 PM.

  2. #2
    Registered User Dcower's Avatar
    Join Date
    Aug 2002
    Posts
    8

    Re: Need help on a C project.

    When you say
    A fibonacci generator (Where the person enters two numbers)
    do you mean that for example a person types:
    5
    and then:
    7

    And it adds those together? I have a Fibonacci program that I made encase you need something that just adds the last 2 numbers... Please post an example of what you mean.

    dillon

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    2
    Yes, that. Sort of.

    You enter two numbers between 0-9. Say:

    7, 8.

    It will add those two and get 15. Then it will add 8 and 15 to get 23. And so on.

    I need it to show the first 10 numbers, then this [30 {7,8}] = thirtieth number.

  4. #4
    CIS and business major
    Join Date
    Aug 2002
    Posts
    287
    Originally posted by Veda
    Yes, that. Sort of.

    You enter two numbers between 0-9. Say:

    7, 8.

    It will add those two and get 15. Then it will add 8 and 15 to get 23. And so on.

    I need it to show the first 10 numbers, then this [30 {7,8}] = thirtieth number.

    I'm not going to tell you the answer of this question, but it's in the programming book, "Programming in ANSI C by Stephen Kochan."

    Very good book, I might add. Just go to your local barnes and noble to find it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem Displaying a Struct
    By rockstarpirate in forum C++ Programming
    Replies: 16
    Last Post: 05-05-2008, 09:05 AM
  2. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  3. Dynamic Binding
    By gpr1me in forum C++ Programming
    Replies: 1
    Last Post: 03-24-2006, 09:01 AM
  4. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 07:41 PM