CMPUT101 Lecture 7: active-learning.pdf
Document Summary
Consider the following beeperbot program that runs under auxiliary mode. 1 . d e f i n e main { # how many b e e p e r s a r e i n bag2 a f t e r. # p l e a s e check with your ta b e f o r e p r o c e e d i n g . 1 9 . d e f i n e next { 2 0 . w h i l e ( h a s b e e p e r ( 2 ) ) { 2013 robot 1 1 e 4 beepers 1 1 2. Give the state of the world and the robot after running the above program. Cmput 101: suppose the initial world con guration is: 2013 robot 1 1 e 6892 beepers 1 1 6885. Give the nal state of the world and the robot.