Description |
xiii, 160 pages : illustrations ; 23 cm |
Contents |
Ch. 1. The Robot World. 1.1. Karel's World. 1.2. Karel's Capabilities. 1.3. Tasks and Situations. 1.4. Problem Set -- Ch. 2. Primitive Instructions and Simple Programs. 2.1. Changing Position. 2.2. Handling Beepers. 2.3. Finishing a Task. 2.4. A Complete Program. 2.5. Error Shutoffs. 2.6. Programming Errors. 2.7. Problem Set -- Ch. 3. Extending Karel's Vocabulary. 3.1. Creating a More Natural Programming Language. 3.2. A Mechanism That Defines New Instructions. 3.3. Block Structuring. 3.4. The Meaning and Correctness of New Instructions. 3.5. Defining New Instructions in a Program. 3.6. Boxing: How Karel Understands a Program. 3.7. An Ungrammatical Program. 3.8. Tools for Designing and Writing Karel Programs. 3.9. Advantages of Using New Instructions. 3.10. Writing Understandable Programs. 3.11. Problem Set -- Ch. 4. Conditionally Executing Instructions. 4.1. The IF/THEN Instruction. 4.2. The Conditions Karel Can Test. 4.3. Simple Examples of the IF/THEN Instruction |
|
4.4. The IF/THEN/ELSE Instruction. 4.5. Nested IF Instructions. 4.6. More Complex Tests. 4.7. When to Use an IF Instruction. 4.8. Transformations for Simplifying IF Instructions. 4.9. The Dangling ELSE. 4.10. Problem Set -- Ch. 5. Instructions That Repeat. 5.1. The ITERATE Instruction. 5.2. The WHILE Instruction. 5.3. Errors to Avoid with WHILE Loops. 5.4. Nested WHILE Loops. 5.5. WHILE and IF Instructions. 5.6. Reasoning About Loops. 5.7. A Large Program Written by Stepwise Refinement. 5.8. When to Use a Repeating Instruction. 5.9. Problem Set -- Ch. 6. Advanced Techniques for Karel. 6.1. Recursion. 6.2. Searching. 6.3. Doing Arithmetic. 6.4. Problem Set |
Notes |
Includes indexes |
Subject |
Computer programming.
|
|
Computer programming.
|
Author |
Roberts, Jim (Jim A.), 1946-
|
|
Stehlik, Mark.
|
LC no. |
94008087 |
ISBN |
0471597252 |
|