Decomposition and abstraction

EasyMediumHard
12345
Question 5
Medium

A group of student programmers are working together to develop a submarine navigation computer game.

In the game, the player controls a submarine using the up and down arrow keys to avoid floating sea mines. A sonar ping audio effect plays each time the submarine successfully collects a floating gold coin. The screen continually displays the player's current score and remaining oxygen levels.

A simple 2D submarine game layout. A cartoon submarine is on the left side of a blue screen, pointing right. Floating black circular mines with spikes are scattered in the middle. Yellow circular coins are also scattered. The top-right shows a text interface with Score and Oxygen levels.

Discuss how the students can use decomposition and abstraction to design and develop this game.

Your write-up should include:

  • A definition of both decomposition and abstraction.
  • The benefits that each computational thinking method brings to a team of developers.
  • Specific examples of where each method would be applied in the design or code of this submarine game.
[6]

Decomposition and abstraction Questions

  1. GCSE
  2. /Computer Science
  3. /Decomposition and abstraction