COMPUTER SCIENCE Summer 2006
Unit 1
Unit1 API
Section One - Classes and Objects, introductory programs
Lab00: Hello Robot
Lab01: Student and Teacher
Lab02: Escape the Maze
Section Two - Inheritance and Methods, how to add new operations or capabilities to class definitions, "for" loops - how to repeat an operation
Lab03: Climb Every Mountain
Lab04: Take the Field
End of Day 1
Lab05: Shuttle Run
Loops and if
Lab06: A Half Dozen Tasks
End of Day 2
Section Three - Algorithms and Polymorphism
Lab07: Exploration
Lab08: Hurdle Racing
Lab09: Shifting Piles
Lab10: Maze Escaping
Section Four - Abstract Classes and Interfaces
Lab11: Identification numbers
Lab12: Harvesting and Carpeting
Lab13: Project: Build Your Own Robot
Threads and Parallel/Concurrent programming:
Lab14: Synchronized Swimming
Lab15: Dancing Robots
Lab16: Shifty Robots
Section Five - Loop controls: return, break, and continue
Lab17: Follow Walls
Lab18: Treasure Hunt
Lab19: Yellow Brick Road
Examples of other types of programs - non-robot programs
ComputeArea.java
ComputeArea2.java
This version demonstrates declaring a "constant" for Pi.
ComputeArea3.java
This version demonstrates using a nicer input/output interface called JOptionPane
ComputeArea4.java
This version demonstrates formatting your answer to two decimal places.