CSE 111, Fall 2000

HW #3 & #4: KAREL THE ROBOT

For these assignments, you will need the printouts of the Karel the Robot website that you got from HW #1, Part 2.

    Alternatively, you can read (and print) these very same files on UB Windows PCs, by selecting:

      Start --> Programs --> KarelTheRobot --> Lessons

    This starts up Internet Explorer (which is like Netscape) and puts you on Karel's Table of Contents page.


HW #3

  1. Read: "1. Overview: Why We Program Karel the Robot"

    Read: "2. Karel's World"

    (On the UB machines,) start Karel by choosing:

    You will probably need to move the Karel window so that you can see all of it. I also recommend that you "maximize" the window.

    NOTE: To exit Karel, just click on the X in the upper right corner. Be sure that you have saved any "worlds" or programs that you want to keep for the next time you use Karel. (See the Web page "How to Save and Load Karel Files" for instructions on how to do this.)

    Do all the tasks in the "Karel's World" document:

  2. Read: "3. Programming Karel", & do all the exercises.

    In particular, do "Assignment 1":

  3. Read: "4. Karel's Primitive Commands".

    Do: Assignment 2.

  4. Read: "5. Karel's Control Statements"

    Read: "6. The if/then Statement"

    Read: "7. Conditions Karel Can Detect"

    Do: Assignment 3 (save it & print it)

  5. Read: "8. The iterate/times Statement"

    Do, save, & print: Assignment 4

  6. For HW #3, turn in Assignments 1 - 4. Make sure that your name & lab section is on all pages. Staple all pages together in the upper left corner. Make sure that your name, lab section, and the date are on the first page.
DUE: AT THE START OF LECTURE: WED., SEP. 27


HW #4

  1. Read: "9. The if/then/else Statement"

    Do, save, & print: Assignment 5

  2. Read: "10. The define-new-instruction/as Statement"

    Do, save, & print: Assignment 6

  3. Read: "11. The while/do Statement"

    Do, save, & print: Assignment 7

    Do, save, & print: Assignment 8

  4. For HW #4, turn in Assignments 5 - 8. Make sure that your name & lab section is on all pages. Staple all pages together in the upper left corner. Make sure that your name, lab section, and the date are on the first page.
DUE: AT THE START OF LECTURE: WED., OCT. 4



Copyright © 2000 by William J. Rapaport (rapaport@cse.buffalo.edu)
file: 111F00/hw3-4.19sp00.2.html