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.