Wednesday 22 October 2014

Python Challenge 12

Lesson Objectives

 - identify the Inputs, Processes and Outputs of a simple program
 - document the planning by creating a flowchart for the program


Starter

Read through Python Challenge 12
A gardener needs to buy some turf for a project they are working on. The garden is rectangular with a circular flower bed in the middle. Ask for the dimensions of the lawn and the radius of the circle. Calculate and display the amount of turf needed to re turf the garden. Test your program with several different sets of dimensions.

Your Task
Identify the InputsProcesses and Outputs for this problem


Main

1. Create a flowchart using draw.io to plan your solution
2. Build your solution in Python
3. Test your solution using a variety of dimensions 


Ext
What happens if the user enters a larger circle than rectangle?

Plenary

Add your flowchart and a screenshot of your code to your blog with a post title Python Challenge 12

1 comment: