CS100 Assignments |
Welcome to the CS100A Assignments Page!
This page contains links for you to use to download programming assignment files and
additional Code Warrior project files.
Assignment 0: The assignment Class Graphics
Assignment 1: The assignment Face.java and Paint.java for the PC Face.java and Paint.java for the Mac
Assignment 2: The assignment Face.java and Paint2.java for the PC Face.java and Paint2.java for the Mac
Assignment 3: The assignment
Assignment 4: The assignment: Loops Sample answer
Assignment 5: The assignment: Loops and arrays
Assignment 6: The assignment: Cryptography
html main.java Crypto.java
See the late-breaking news on the main CS100A home page for some important
information about this assignment.
Assignment 7: Playing checkers
TrivialApplication.java
Checkers.java
CheckersSquare.java
IntLabel.java
Applet to play checkers.
Sorry, at the moment it runs only in internet explorer
Small
TrivialApplication.java to EXPERIMENT with GUIs
Assignment 8: The assignment Matlab hints
Assignment 9: Applet to run cruise control simulation. Sorry, at the moment it runs only in internet explorer.
The assignment (postscript version)
The assignment (html version)
Files to download:
CruiseControl.java
Accelerator.java
ClockedFrame.java
CurrentSpeed.java
Desiredspeed.java
SystemOutput.java
SystemClock.java
RoadGrade.java
Important note about setting up the CodeWarrior project. The
assignment handout explains that the CruiseControl will replace the CUCSApplication as the
class that contains method main. There are instructions for how to do that in the
Guide to CodeWarrior Java handout from the first day. But we summarize the instructions
here. They're simple. Click on In the left part of the window, click on Target|Java
Target (you may have to Edit|Java
Application Setting. A window appears. click on
the triangle or + to the left of Target in order to see this command). Then, on the right
subwindow, type in CruiseControl, which is the name of the
Java class that contains the new method Click Save and
then close the window. That's it. The first day handout has a main. second step
for Windows users, but I don't believe that that step is needed in the current version of
CodeWarrior. If you have trouble though, you should execute that second step.
Extra-credit Assignment
--extend checkers to allow several jumps in a row
If you have any questions or comments about this page, please
contact: pyen@cs.cornell.edu
Page last modified: 23 August 2000