Unit 3-01

Learning Outcome

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

  • understand and use an if statement

Review

  • sequential programming

Lesson

  • why could you get negative numbers on Assignment #2?
  • go over "Boolean expression" and "if ... then", Chapter 3
    • Computer Based Problem Solving
  • look at Too Many Students program

Activity

  • watch this video
    • the video presenter has BAD programming habits
    • "=" this is not an "equal" sign it is an "assignment statement"
    • "==" is an "equal" operation

Daily Assignment

  • re-create a "Number Guessing Game" program in a GUI using Tkinter
    • save the number in a constant
    • hint: my number is "5"

Extra

  • create the above program in a second language such as PHP

Code Links

Homework!

  • read over "if ... then ... else", Chapter 3
    • Computer Based Problem Solving