Class 5 – Friday, September 1

It's all about you

Show understanding — Put it altogether now — Yes you all can do


Look both ways


Examples


Agenda


By the way (BTW)


General requirements


Problem how_old_will_i_be_in_2060.py

Requirements

Three possible sample runs

  Enter your age: 19

  In 2060 you will be 62

  Enter your age: 21

  In 2060 you will be 64

  Enter your age: 43

  In 2060 you will be 86

Suggested code outline


Program dateable.py

Requirements

Three possible sample runs

  Enter your age (integer): 19

  19 year olds should date somebody who is at least 16 years old

  Enter your age (integer): 22

  22 year olds should date somebody who is at least 18 years old

  Enter your age (integer): 88

  88 year olds should date somebody who is at least 51 years old

Suggested code outline


To do list


variables as boxes