LOGO+7-8-9

'CS Rocks'

**Unit 7**
toc Learning Objectives 1. debugging and refining a game

TaskSet 7 (due Aug 26)
This is a procedure for a number guessing game. Copy the following procedure into LOGO. Run the procedure and play the game. Work in groups of three to critique this game. Make a clear list of 5 modifications that you would want to make. Make the modifications. turn in your list and your modified code.

TO GUESSINGGAME TS CT PRINT [] PR [ENTER A VALUE BETWEEN 1 AND 25] MAKE "NUMBER READ IF :NUMBER = 12 THEN PR [YOU WIN] IF :NUMBER > 12 THEN PR [TRY A SMALLER VALUE] IF :NUMBER < 12 THEN PR [TRY A BIGGER VALUE] PR [] PR [DO YOU WANT TO TRY AGAIN Y / N] MAKE "ANSWER RC IF :ANSWER = "Y [GUESSINGGAME] END

Fun Stuff to try
Try these:

1. TO OVAL :X :Y if :y = 0 [stop] stampoval :x :y oval :x+5 :y-5 END Run your procedure by giving two values. like OVAL 5 80

2. TO CONE :X if :x>75 [stop] repeat 10 [fd :x rt 36] cone :x+2 END

**Unit 8**
Learning Objectives 1. interactive conversation programs 2. programs can be made to talk smartly, its all logic

TaskSet 8 (due Sep 1)
1. create procedures 'SMART' and 'SMART1' and test them. (see handout) 2. create all the procedures required for the 'rocket' game and test. (see handout) 3. complete all the improvements suggested for the rocket game. (see handout) 4. update your your check list

