Constructs

EasyMediumHard
123456789101112131415161718192021222324252627282930
Question 23
Medium

An automated space exploration probe is collecting soil samples on Mars. The probe has exactly 12 empty storage slots for mineral samples.

To manage sample collection, the probe runs a control program. A built-in subprogram called retrieveMineralSample() pauses program execution until a robotic arm successfully detects, picks up, and loads a valid mineral sample.

In a flowchart, a call to this subprogram is represented as a process box containing retrieveMineralSample().

Draw a flowchart for a program that waits for and processes the collection of the 12 samples, outputting the telemetry confirmation message 'Sample stored successfully' for each successful collection, and then stops.

[6]

Constructs Questions

  1. GCSE
  2. /Computer Science
  3. /Constructs