lmayer@elgin.edu

Repetition

Lecture 6 OBJECTIVES

After completing this class, students will be able to:

  • Use a While statement correctly
  • Use a Do-While statement correctly
  • Explain the difference between a While and Do-While
  • Use Increment and Decrement Operators correctly
  • Use a For loop correctly
  • Explain what loop should be used for a given problem
  • Design a loop:
    • Initialization statement
    • Body
    • Conditions to end the loop
  • Explain how to end a loop
  • Use nested loops correctly
  • Debug a loop

Reading Assignment:Savitch:
Section 3.1 - 3.3, Pages 99 - 117 (Functions)

Click here for presentation.

Homework: Draw Triangle Problem

 

 

Previous Lecture                             Next Lecture