Implementation - What do I need to know?
Worked Examples
Input/Output & Arithmetic
Ex. 1 - Input 2 numbers and add together
Ex. 2 - Calculate Area of rectangle
Ex. 3 - Distance/Speed = Time
Selection - if conditions
Ex. 4 - School Trip if paid
Ex. 5 - Test Marks - if passed
Ex. 6 - Sports Day
Ex. 7 - Password checker
Ex. 8 - Footballer Age - Nested ifs elif
Ex. 9 - Nested ifs Grade percentage
Repetition - Fixed Loops
Ex. 10 - Repeat name 15 times
Ex. 11 - Fixed Loop from user input
Ex. 12 - Captain - Count votes in loop
Standard Algorithm - Running Total with Fixed Loop
Ex. 13 - Running Total - Mobile App Cost
Ex. 14 - Running Total, Average Race Time
Ex. 15 - Running Total, Concert Tickets
Repetition - Conditional Loops
Ex. 16 - Guess the capital city
Ex. 17 - Pick a bonus ball
Ex. 18 - Guess the band
Standard Algorithm - Input Validation
Ex. 19 - Input Validation - Sunshine (12 months)
Ex. 20 - Cinema Trip Yes/No
Ex. 21 - Validate Password Length
Predefined Functions (round, len, random)
Ex. 22 - Round Function
Ex. 23 Len Function
Ex. 24 - Random Function
Working with Arrays
Ex. 24 - Fill array using loop
Ex. 25 - Shopping Receipt
Ex. 26 - Class Height Average
Ex. 27 - Solar System
Ex. 28 - Archery Score with input validation
Ex. 29 - Football Scores
Ex. 30 - Cruise Ship with nested ifs
Ex. 31 - Charity Lottery
Example Course Assignment solutions
2021 Example solution
2020 Example solution
2019 Example solution
2018 Example solution
2017 Specimen Example solution