BuiltWithNOF
Week 6

Repetition Statements

Topics

  • while() statements.
  • do/while() statements.
  • for() statements.
  • Increment/decrement operators (++/--).
  • Debugging loops.

At the end of the week you should be able to:

  • Use a while() statement in a C++ program.
  • Use a do/while() statement in a C++ program.
  • Use a for() statement in a C++ program.
  • Debug code with a loop that is misbehaving.
  • Write a program that sums all of the numbers from 1 to 1000.
  • You should be able to do the above program using any of the above loops.

Reading Assignment

    Savitch:
    Section 4.1 - 4.3, Pages 178-200 (Functions) [7th 182 - 202][6th 180-200]

    Pirsig:
    Pages 183-188 (Essay on Quality) [Harper 258-265]

Take-Home Programming Assignment

Reading Assignment

    Internet:
    WWW.GRAPHICSMAGICIAN.COM

[Home] [About Me] [Office Hours] [CIS 098] [CIS 110] [CIS 114] [CIS 121] [Online Video] [Books] [Week 1] [Week 2] [Week 3] [Week 4] [Week 5] [Week 6] [Week 7] [Week 8] [Week 9] [Week 10] [Week 11] [Week 12] [Week 13] [Week 14] [Week 15] [Week 16] [CIS 123] [CIS 127] [CIS 170] [CIS 207] [CIS 226] [CIS 227] [CIS 230] [CIS 262] [COL 101]