Algorithms and programming June 2024, Question 8 13 marks
A group of students are designing a racing car game. The game will allow players to enter their name and then a choice of vehicle. They will then race against other vehicles that will be controlled by the program. Players will use the arrow keys to control their vehicle.
The students are identifying the inputs and outputs for the game.
Complete the table by identifying two inputs and two outputs for the game.
| Input 1 | ........................................................................................................................ ........................................................................................................................ |
| Input 2 | ........................................................................................................................ ........................................................................................................................ |
| Output 1 | ........................................................................................................................ ........................................................................................................................ |
| Output 2 | ........................................................................................................................ ........................................................................................................................ |
Reveal mark scheme
The students use abstraction during the design process.
State what is meant by abstraction and describe how it can be used to design the racing car game.
Reveal mark scheme
Explain why it is beneficial to use abstraction when designing a computer program such as a game.
Reveal mark scheme
The group of students also use decomposition.
State what is meant by decomposition.
Reveal mark scheme
Describe one benefit of using decomposition when designing a computer program such as a game.
Reveal mark scheme