Wednesday, October 1, 2008

The golden function

Your assignment today involves the mystic Golden Ratio. Here's you assignment for today. Once you're finished, upload your main.cpp file.


I'm feeling cheritable this morning, so here's the function that you should use:



Ultimately, your program output should look like this:



.

Loops




Submit your responses in a comment to this blog.

.

Tuesday, September 30, 2008

Quizlet

Do not compile this code. What is output by the program? Submit your answer in a comment to this blog.

int n=2;

for(int i=0; i<=5; i++)
{
    n = (n * 2) - n + i;
}  
cout << n;

.

Monday, September 29, 2008

Functions & Top-Down

We're going to start off the week with an excercise over functions.

Then, we're going to practice a little top-down programming. I'll demonstrate the process first then I'll let you guys try it your selves.


.