Gordon CS 112 - Introduction to Karel J. Robot (6 pages)

Previewing pages 1, 2 of 6 page document View the full content.
View Full Document

Introduction to Karel J. Robot



Previewing pages 1, 2 of actual document.

View the full content.
View Full Document
View Full Document

Introduction to Karel J. Robot

51 views

Other


Pages:
6
School:
Gordon College
Course:
Cs 112 - Introduction to Programming
Introduction to Programming Documents

Unformatted text preview:

CS112 Lecture Introduction to Karel J Robot Last revised 1 8 09 Objectives 1 To introduce Karel J Robot as an example of an object oriented system 2 To explain the mechanics of writing simple Karel programs Materials 1 Interactive demonstration program Helicopter 2 BlueJ project containing InitialDemo world java and HarvestTwoRows world java 3 Projectable version of problem 2 5 from complete book plus Problem2 5 world 4 Projectable version of problem 2 7 from complete book plus Problem2 7 world I Introduction A Before beginning our study of Java we will look at a simpler example of an object oriented system Karel J Robot By so doing we will be able to cover many of the key ideas of object oriented programming in an initial way B Karel the Robot was first introduced over 25 years ago as a vehicle for introducing students to programming at a time when the dominant language for teaching programming was Pascal It has been revised several times since then The current version called Karel J Robot is programmed using Java and runs using a robot simulator also written in Java C We are using this for first few classes of the course to get a quick look at a number of key programming concepts We will then explore these concepts and others in more depth in the rest of the course II Introduction to the Robots World A As you saw last semester and or read in the reserve reading Karel and his relatives are robots who live in a world consisting of east west Streets and north south Avenues At any time each robot is positioned at the corner of a Street and an Avenue facing in one of four directions north west south or east B In addition to the streets avenues and robots themselves the robot world includes impenetrable walls and objects called beepers which robots can pick up from a corner or put down on a corner on command 1 DEMO Run interactive demonstration Helicopter using InitialDemo world as world Point out streets avenues walls and beepers then use new button to create a new



View Full Document

Access the best Study Guides, Lecture Notes and Practice Exams

Loading Unlocking...
Login

Join to view Introduction to Karel J. Robot and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Introduction to Karel J. Robot and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?