Test: the glass-filling robot → Edition

DASHBOARD

SHOE

Elementary instructions

Choose the first glass
Squeeze 1 drop into the chosen glass
Move on to next glass
Fill the dropper

Checks

The chosen glass is full?
The dropper is empty?
All glasses are full?

Logical operators

AND
OR
NOT

Control structures

IF
THEN
ELSE
END IF
REPEAT
UNTIL
WHILE
DO
END WHILE



Test: the glass-filling robot → Execution

Dashboard

Running the program

Step by step execution

Test conditions

Initial test conditions...

Test result

Test result...


© Rupert Meurice de Dormale 2024 (update of the 1995 version)

All rights reserved. Copying in whole or in part prohibited without written permission of the author.

Exercice extrait du livre "Images pour programmer" du Professeur Charles Duchâteau (CeFIS, Université de Namur, Belgique)

The drawings of the robots are by Jean-Baptiste Sonnet.

adresse