Six original Cambridge-style questions on writing and amending algorithms in pseudocode and flowcharts.
Write pseudocode to input the times, in seconds, of 8 runners in a race, then output the fastest (smallest) time and the average time.
Write pseudocode that asks the user to guess a secret number stored in Secret. The user keeps guessing until correct. Output "Too high" or "Too low" after each wrong guess, and the number of guesses at the end.
Draw a flowchart for an algorithm that inputs a temperature and outputs "Hot" if it is above 30, otherwise "Not hot".
Write the algorithm in Fig. 1 of this lesson in pseudocode.
Amend the ticket algorithm in this lesson so that it also outputs the largest number of tickets bought by any one customer. State where each new line goes.
A student writes "keep adding the numbers until the user has finished". Explain why this would not gain full marks and rewrite it as pseudocode statements.
Mark this once you have attempted all six and checked your working. It records a Practiced badge on the topic and adds a one-time bonus. Revealing the solutions alone does not count.