Lab 3: Conditionals and Variables

Objective: Learn about conditionals and variables

For this lab follow the instruction of the Conditionals and Variables lab from UCB. Be sure and accumulate all of the blocks you create as part of that lab in on script which you will turn in at the end. The main "program" you will turn in will be the number guessing game at the end. However, to encourage you to take your time and complete the steps building up to that, be sure and include any other blocks created as part of the exercise. That would be traffic signal, letter grade, state of water, in between, and >=. Make sure there is an example of the block placed on the main script so the TA can easily find it and check it. When you have completed all 6 challenges for the number guessing game, export that as XML. Name the file numberGame.xml and turn it in to ecommons.

Completing all of the blocks along the way, and the first 3 of the number guessing game challenges will earn a check- (8 out of 10) for this assignment.

Completing just the 6 challenges but failing to turn in the 5 blocks listed above, completed along the way, will also earn a check- (8 out of 10).

There are two ways to end up with all of the blocks along the way included in your final xml file. One is to skip ahead at the beginning and open up the starter program for the Guessing Game, then add your blocks to that as you go.

Alternatively, (or if you forget to do that at first), you can use "Export Blocks" from the file menu to export an xml with the blocks. You can then import this xml document into your Guessing Game program later.

Due: Monday, October 17th, 1pm.