Discussion in 'Mac Programming' started by phiber optik, Jul 8, 2006.

  1. macrumors newbie

    Apr 25, 2006
    Hey all
    I'm going to attend a computer camp that will deal heavily with programming in C++, and i desperatly need to brush up on my programming skills. Can people provide some little project ideas so i can get back into programming and be ready for my camp?
    (stuff like printing the fibonacci sequence or other math stuff, if youre confused as to what im asking)
    thanks for any input asap!
  2. macrumors G4


    Nov 3, 2005
    From your Fibonacci example from some similar exercises for Fortran (it's a long story) and Java course from last year

    Print the first n terms of the Fibonacci sequence

    Print the terms of the Fibonacci sequence up to n

    Print the first n lines of Pascal's triangle

    Print the first n prime numbers

    For an entered value of x calculate 1/(x+1) when x=-1 (as 1/0 is undefined) it should produce an error and ask for a new value of x.

    Convert a temperature from Fahrenheit to Celsius and back again.

    Solve a quadratic ax^2+bx+c=0 with a,b,c known.

    Find the greatest common divisor of two numbers (more info here)
  3. macrumors 68030


    Apr 17, 2004
    Ooh, here's one that made me think:
    Try this one: (SEE IMAGE). I'll compute the answer:

    Attached Files:

Share This Page