practice

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

1. phiber optik macrumors newbie

Joined:
Apr 25, 2006
#1
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!
-phiber

Joined:
Nov 3, 2005
Location:
UK
#2
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.

3. slooksterPSV macrumors 68040

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

File size:
22.7 KB
Views:
53