Lesson Objectives
- be able to apply flowcharts to a sequencing program- understand the importance of planning before coding
Starter
Have a little fun on Lightbot - click HEREMain
Draw a flowchart to solve the following problems:
Amber Task
Using Flowcharts to plan Python programmes:
Python Challenge (Draw flowcharts for the following BEFORE you start coding)
1. SAVE AS rectangle.py
Challenge:
Ask a user for the LENGTH and WIDTH of a Rectangle, than calculate and print the AREA.
Green Task
Python Challenge (Draw flowcharts for the following BEFORE you start coding)
2. SAVE AS circle.py
Challenge:
Ask a user for the RADIUS of a Circle, than calculate and print the AREA.
Plenary
Share with a partner the importance of planning BEFORE coding
No comments:
Post a Comment