Assignment 4: Conditional and Variables

Week 4 Assignment
 
Goal: Learn about Conditionals and Variables, Combining Booleans, Practice With Predicates, and Number Guessing.
Duration: About 3 hours.

 

What you need to do (4 steps):

1. Complete  the following “Conditionals and Variables, Combining Booleans, Practice With Predicates, and Number Guessing” activities (on your own or via a partner):

  How to start?

  • 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.

 How many blocks in total do I have to turn in? 

  8 in total. That would be traffic signal, letter grade, state of water, in between,  >=, check for the leap year, weekend, number guessing (6 challenges). 

Conditionals and Variables, Combining Booleans, Practice With Predicates, and Number Guessing  

2. Export the final work and save it as XML.

     exmaple: lab4.xml

3. Submit your xml file as  "Attachments" in the submission area. 

4.a. If you collaborated with someone, mention their name and email address in the comment area. 

4.b. If you are resubmitting (after being graded in the lab), mention that in the comment area. 

Grading Criteria:

  • Full credit is 10.
  • Extra credit in not available. 
  • 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 7 blocks listed above, completed along the way, will also earn a check- (8 out of 10). 
  • Note: Make sure there is an example of the block placed on the main script so the TA can easily find it and check it. 
Due:  Feb 1st, 8am