Difference between revisions of "GvR Steps 1-13 Quiz"

From WLCS
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Directions: ==
 
== Directions: ==
  
You have until the halfway point of the class period to complete the quiz.  The quiz is open-note, open-computer, but CLOSED-PERSON (no screen-peeking or talking with a classmate).  When you believe that you are done with the quiz, please raise your hand and I will grade it.
+
You have until the end of the class period to complete the quiz.  The quiz is open-note, open-computer, but CLOSED-PERSON (no screen-peeking or talking with a classmate).  When you believe that you are done with the quiz, please raise your hand and I will grade it.
  
 
<p>1) Download the following two world maps: [[Media:Quiz2a.wld]] and [[Media:Quiz2b.wld]]</p>
 
<p>1) Download the following two world maps: [[Media:Quiz2a.wld]] and [[Media:Quiz2b.wld]]</p>
Line 7: Line 7:
 
<p>2) You will write one program that works for BOTH worlds.  If you can only get your program to work on the first one, then you will still receive partial credit.  In your program, Guido will pickup all the beepers along the bottom, continue to travel around the walls, and drop off one beeper at each of the openings.</p>
 
<p>2) You will write one program that works for BOTH worlds.  If you can only get your program to work on the first one, then you will still receive partial credit.  In your program, Guido will pickup all the beepers along the bottom, continue to travel around the walls, and drop off one beeper at each of the openings.</p>
  
<p>Your program should do the following:
+
Your program should do the following:
<ul>
+
 
<li>Move forward as long as the front is clear (must use a while)</li>
+
# Move forward as long as the front is clear (must use a while)
<ul>
+
## While you are on top of beepers, you pick them up (must use a while)
<li>While you are on top of beepers, you pick them up (must use a while)</li>
+
# Continue following the wall so that you end up in the top area.  (You can do this any way you want)
</ul>
+
# Move forward as long as the front is clear (must use a while)
<li>Continue following the wall so that you end up in the top area.  (You can do this any way you want)<li>
+
## If there is an opening to the right, you should drop a beeper (must use an if)
<li>Move forward as long as the front is clear (must use a while)</li>
+
# Guido should shutdown in the upper left corner of the walls
<ul>
 
<li>If there is an opening to the right, you should drop a beeper (must use an if)</li>
 
</ul>
 
<li>Guido should shutdown in the upper left corner of the walls</li>
 
</ul>
 
</p>
 
  
 
<p>3) When you are done, raise your hand and be prepared to run your program.</p>
 
<p>3) When you are done, raise your hand and be prepared to run your program.</p>
  
 +
== Grading ==
 
4 pts for picking up all the beepers
 
4 pts for picking up all the beepers
 
<br>
 
<br>
Line 30: Line 25:
 
2 pts for having your program work in both World A and World B
 
2 pts for having your program work in both World A and World B
 
<br>
 
<br>
----
+
---
 
<br>
 
<br>
 
10 pts total
 
10 pts total

Latest revision as of 11:52, 1 October 2009

Directions:

You have until the end of the class period to complete the quiz. The quiz is open-note, open-computer, but CLOSED-PERSON (no screen-peeking or talking with a classmate). When you believe that you are done with the quiz, please raise your hand and I will grade it.

1) Download the following two world maps: Media:Quiz2a.wld and Media:Quiz2b.wld

2) You will write one program that works for BOTH worlds. If you can only get your program to work on the first one, then you will still receive partial credit. In your program, Guido will pickup all the beepers along the bottom, continue to travel around the walls, and drop off one beeper at each of the openings.

Your program should do the following:

  1. Move forward as long as the front is clear (must use a while)
    1. While you are on top of beepers, you pick them up (must use a while)
  2. Continue following the wall so that you end up in the top area. (You can do this any way you want)
  3. Move forward as long as the front is clear (must use a while)
    1. If there is an opening to the right, you should drop a beeper (must use an if)
  4. Guido should shutdown in the upper left corner of the walls

3) When you are done, raise your hand and be prepared to run your program.

Grading

4 pts for picking up all the beepers
4 pts for dropping off a beeper at each of the openings
2 pts for having your program work in both World A and World B
---
10 pts total