CMPUT101 Lecture 7: active-learning.pdf

394 views4 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents