Upload
others
View
3
Download
0
Embed Size (px)
Citation preview
CP Computer Science Lego-Lab Assignments
Lego Lab 02 Configuring the Display and Wait BlocksDO, RE, MI…80 & 100 Point Versions
Lab 02 Objectives
Introduce the NXT programming languageWrite a simple NXT program with Display and Wait blocks.Download and run the program
# Actions
01a Getting Started
Load the Lego NXT Software by double clicking the icon on your desktop (Firgure 01) is you have it.You can also access this by clicking [Start] – [All Programs].The software may take a little while to load and you may see the loading display from Figure 02.
Figure 01
Figure 02
Lego Mindstorms 2010, PreAPCS Edition Lego Lab 02 Page 1 05-26-10
01b Getting Started
When the software loads, enter LegoLab02 under Start New Program and click GO >> as shown in Figure 03.
Figure 03
02a 70 Point Version
1. Your program block must display these 8 lines of output:
DOTILASOFAMIREDO
2. All 8 words must be visible on the left side of the screen, SIMULTANIOUSLY, for 5 seconds.
Lego Mindstorms 2010, PreAPCS Edition Lego Lab 02 Page 2 05-26-10
02b 80 Point Version
1. Your program block must display these 8 lines of output:
DOTILASOFAMIREDO
2. All 8 words must be visible on the CENTER of the screen, SIMULTANIOUSLY, for 5 seconds.
02c 90 Point Version
1. Your program block must display these 8 lines of output:
DOTILASOFAMIREDO
2. This may look like the same centered display of the 80 point version, but there is a major difference.In the 80 point version, all of the words show up at once. In the 90 point version, the words show upone at a time starting with the bottom DO and working its way up to the top DO. There should be aone second pause between each word.
02d 100 Point Version
1. Your program block must display these 8 lines of output:
DOTILASOFAMIREDO
2. The 100 point version has major changes. Like the 90 point the words are still displayed one at a time going up; however, as each word is displayed, the previous word must be cleared. On the way up only one word should be visible at a time. After you get to the top DO the words needs to be displayed in reverse order goingdown. This time the output will not be clear. When finished, the output will show all 8 words for 5 seconds.
Lego Mindstorms 2010, PreAPCS Edition Lego Lab 02 Page 3 05-26-10
Lego Mindstorms 2010, PreAPCS Edition Lego Lab 02 Page 4 05-26-10