Test: the coin-sorting robot → Edition

DASHBOARD

SHOE

Elementary instructions

Take 1 coin from the pile
Deposit in the 1 franc jar
Deposit in the 2 franc jar
Deposit in the 5 franc jar

Checks

The pile is empty?
This is a 1 franc coin?
This is a 2 franc coin?

Logical operators

AND
OR
NOT

Control structures

IF
THEN
ELSE
END IF
REPEAT
UNTIL
WHILE
DO
END WHILE



Test: the coin-sorting 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