Action functions available :
Test functions available :
Test your script
Résult of the execution of your code
The goal of this exercise is to construct Boolean expressions using AND (&&), OR (||) and / or NOT (!).
You are not to use « else » and since there are just 2 possibilities, it should be possible to achieve this with 2 successive « if » statements and AND (&&), OR (||) and / or NOT (!).
Use DeMorgan’s theorem to enable the robot to determine when it’s ok to let someone use the car based on the driver having their license and having obtained the key from the car rental agency.
◊ ◊ ◊
© Rupert Meurice de Dormale 2017
All rights reserved, reproduction in whole or in part of the interface and / or the code forbidden without the written agreement of the author
The drawings of the robots are of Jean-Baptiste Sonnet.