Friday, September 12, 2008

Quiz

Click here to download your quiz.

After you're done, save a copy of your quiz onto your flash drive (don't change the name) then upload your quiz.

For the rest of class, work on your programs.


.

Wednesday, September 10, 2008

Back to our assignment...

Just a reminder, we have a quiz tomorrow!!!

Here's the link to a zip containing some MSVS settings. 

Today you guys are going to work on the 4 programs assigned a few day ago.

I'm expecting you guys to stay on task!!!

No music, no chatting, no games, no joke.

I'm not above pulling your internet cables if this remains a problem. First work, then play.


.

Tuesday, September 9, 2008

Slow My Roll...

OK... I think it would be helpful to everybody if I slowed things up a bit and presented a couple loop demos...

Put those 4 programs on hold and just pay attention for a bit.

Here are the programs I'm writing:
  • Loops-1
  • Loops-2
They're located at howardm.com, under docs.


Control Structure Programs

You have until the end of class to finish up the 4 short programs assigned yesterday.

When you're done with each program, go ahead and upload each individually. Make sure that in the uplad description, you include what program number the file pertains to (1, 2, 3, 4).


.

Monday, September 8, 2008

Programs...

1) Write a program named for_you which displays "Loops are awesome" 100 times. You must use a for loop.

2) Write a program while_you which displays "Loops are awesome" then waits for the user to strike a key. If the 'q', 'Q', 'w', or 'W' key is entered, repeat the display, "Loops are awesome". You must use a while loop.

3) Write a program named for_me which displays "Loops are awesome" 100 times. You must use a while or do-while loop.

4) Write a program while_me which displays "Loops are awesome" then waits for the user to strike a key. If the 'q', 'Q', 'w', or 'W' key is entered, repeat the display, "Loops are awesome". You must use a do-while loop.

These programs are due at the end of class tomorrow.
.

Control Structures

After a brief presentation using the online tutorial, answer the following questions.

1) What are the 3 main methods for looping in c++?

2) How are while, and do-while loops different?

3) What are the 3 main parts of a for loop?


.