Unit 3-05

Learning Outcome

At the end of this lesson, you will be able to:

  • understand and use While loops

Movie Watching

Review

  • all decision structures

Lesson

  • go over "While loops", Chapter 3
    • Computer Based Problem Solving

Activity

  • look at this tutorial
  • do while loop example:
count = 0
while (count < 9):
   print 'The count is:', count
   count = count + 1

print "Good bye!"

Daily Assignment

  • do the "Factorial" program
    • go over what is "factorial", or n!
    • see example in textbook (pg. 48)

Extra

  • create the above program in a second language

Homework!

  • read over looping structures, Chapter 3
    • Computer Based Problem Solving