kernel programming with java
kernel programming with java
Announcements
● Four Handouts Today:
● Downloading Eclipse
● Running Karel Programs in Eclipse
● Programming Assignment #1
● Submitting Programming Assignments
● Programming Assignment #1 Out:
● Karel the Robot: Due Friday, January 20 at
3:15 PM
● Email: Due Sunday, January 22 at 11:59PM
The CS106A Grading Scale
++
+
✓+
✓
✓-
-
--
0
Assignment Grading
● You will receive two scores: a functionality
score and a style score.
● The functionality score is based on how
well your program works.
● Does it work correctly in the sample worlds?
● Does it work correctly in custom test worlds?
● The style score is based on how well your
program is written.
● We'll cover elements of good style throughout
this course.
Late Days
● Everyone has two free “late days” to use
as you see fit.
● A “late day” is an automatic extension for
one class period (Monday to Wednesday,
Wednesday to Friday, or Friday to
Monday).
● If you need an extension beyond late
days, please talk to Jeremy.
Section Signups
● Section signups open tomorrow at 5PM
and close Sunday at 5PM.
● Sign up for section at
http://cs198.stanford.edu/section
● Link available on the CS106A course
website.
Our Very First Karel Program Revisited
import stanford.karel.*;
frontIsClear()
frontIsBlocked()
beepersPresent()
beepersInBag()
facingNorth()
facingSouth()
frontIsClear()
frontIsBlocked()
beepersPresent()
beepersInBag()
facingNorth()
facingSouth()
if (condition) {
… statements to repeat if condition holds …
} else {
… statements to repeat if condition doesn't hold …
}