# Designing & Creating Algorithms

### Lesson Instructions

Watch and follow the YouTube video,Â the lesson contains three parts:

Key Information and content - all you need to do here is watch and listen

IPOD Task - Complete the IPOD tables for the given algorithms.

Algorithm Challenge - Level up your answers by selecting a suitable algorithm challenge.

Consolidation - these are past exam question and are for deliberate practice to check your understanding.

# Task - IPOD

# Task - Creating Algorithms

# Task - Exam Questions - Deliberate Practice

## Mark Scheme

INPUT Distance

INPUT Passengers

Extra = Distance - 1

CostofExtra = Extra * 2

Cost = 3 + CostofExtra

IF Passengers > 4 THEN

Surcharge = Cost / 2

Cost = Cost + Surcharge

END IF

OUTPUT Cost

Award marks for:

Inputs distance and passengers

Calculates distance -1 (or equivalent)

Calculates previous answer * 2 (or equivalent)

Calculates previous answer + 3

Checks if more than 4 passengers...

...and adds 50% correctly

Outputs cost