Page 38 · Robotics with the Boe-Bot
instead of two small ones. Modify these two commands so that the answers
appear on different lines in the Debug Terminal.
DEBUG DEC 7 * 11
DEBUG DEC 7 + 11
Projects
1. Write a program that uses a DEBUG instruction to display the solution to the math
problem: 1 + 2 + 3 + 4.
2. Predict what you would expect to see if you removed the
DEC formatter from this
command. Use a PBASIC program to test your prediction.
DEBUG DEC 7 * 11
3. Which lines can you delete in HelloBoeBotYourTurn.bs2 if you place the
command shown below on the line just before the
END command in the program?
Test your hypothesis (your prediction of what will happen). Make sure to save
HelloBoeBotYourTurn.bs2 with a new name to help keep track, like
HelloBoeBotCh01Project03.bs2. Then make your modification, save and run
your program.
DEBUG "What's 7 X 11?", CR, "The answer is: ", DEC 7 * 11