Do this Quiz on Session 8 as you watch the videos and do the reading (as listed below). This document is a Microsoft Word document; here is the same Quiz on Session 8 (pdf) as a PDF.
You can either:
All of the following are required except the items labeled Optional are, well, optional (i.e., things that may be interesting but do not directly pertain to your success in this course).
The above video and reading cover much the same material, but with two very different presentations. Choose what works best for you. In the reading, focus your attention on:
Aside: There are two basic approaches to event-controlled loops when it is wrong to check the condition as the first act in the loop. The video presents one style, the textbook another; either is fine. Special Topic 4.1 acknowledges the video's style, in its discussion of using a break statement to implement a loop and an half.
Textbook reading: Section 4.2 — Problem Solving: Hand-Tracing (pages 163 - 165, 3 pages).
You will do hand-tracing on your first test; this section is a nice example of the “how-to's” for doing so.
Note: This video is slightly out of date in several small respects:
robot.toFullMode() when constructing a robot — full mode is now the default mode. new_create.Sensors.BLAH. This is a better approach than trying to guess (or look up) a sensor string.