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. We recommend you take some notes for this one!
Learning activity - You are to complete the activity, by writing sub programs. The first will be a sorting task, the second will be writing it yourself.
Consolidation - these are past exam question and are for deliberate practice to check your understanding.
Task - Sub Programs Activity
Task - Exam Questions - Deliberate Practice
1 mark per bullet to max 4
Function defined called newbalance...
....that allows two parameters to be passed in
Correct balance calculated using these parameters
Bullet points 3 and 4 may be combined into one line (e.g. return balance-cost). Parameters can have any sensible identifiers. Allow any sensible attempt to return a value for bullet point 4, even if this is not the correct new balance.
1 mark per bullet
Program calls function correctly using hours and minutes variables
Parameters used appropriately
Calculation is computed accurately
Final total is returned suitably
Parameters name in the function must be used within the function itself
Does not matter if function uses different names to those declared in the main program
Return must be included with the correct local variable for total