Test: the robot that peels potatoes → Edition

DASHBOARD

SHOE

Elementary instructions

Fill the basket
Peel 1 potato and throw it into the pot

Checks

Basket empty?
The pot is full?

Logical operators

AND
OR
NOT

Control structures

IF
THEN
ELSE
END IF
REPEAT
UNTIL
WHILE
DO
END WHILE



Test: the robot that peels potatoes → 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.

Exercise taken from the book "Images pour programmer" by Professor Charles Duchâteau (CeFIS, Namur University, Belgium).

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

adresse