Download presentation
Presentation is loading. Please wait.
Published byPercival Ray Modified over 9 years ago
1
PYTHON PROGRAMMING Week 6 - Tuesday
2
WHAT’S AN ALGORITHM? https://www.youtube.com/watch?v=6hfOvs8pY1k
3
LAST WEEK Functions Defining functions Parameters Why bother? Algorithms Designing algorithms Stepwise refinement
4
REMINDERS Pen portraits – Bradley, Malik Update targets based on assignment and check existing targets John to go through targets individually Elvis – set up email on Edmodo Bradley – assignment 1 MT2 – Cris, Bethany
5
TODAY Algorithms Solve problems using top down development and stepwise refinement Python Writing functions with and without parameters Calling functions with arguments Some library/built in functions
6
ALGORITHM – LARGEST OF THREE NUMBERS From homework: Find and display the largest of three numbers entered through the keyboard. Solve this using the four major steps method. (Taken from textbook p. 22) Class activity – get an algorithm on the IWB we are ALL happy with! Now write the program….
7
ALGORITHM DESIGN Top down design – hierarchy chart for quadratic equation solver Activity – Topic 1.2 Stepwise refinement Activity – sum and average
8
PRACTICAL Codecademy: Functions Plus Exercises Challenges
9
RECAP What is top down design? What is stepwise refinement? What are the four major steps used in computer based problem solving? What is the difference between and argument and a parameter.
10
TOMORROW More on algorithms Functions – practice Assignment 2
11
HOMEWORK Read through Topic 1.2 and make some notes
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.