Lab Information
Lab Schedule
The following is subject to change up to 7 calendar days prior to any particular lab exercise.
- April 4: Basic unix commands
- April 6: AFS
- April 11: The editor "emacs". What to do in lab.
- April 13: Work on programming project -
For this lab you must have read programming assignment 1.
Then complete a short programming exercise.
- April 18: Lab quiz 1
- April 20: Debugging
- April 25: Lab quiz 1 programming assignment repeat.
- April 27: An Integrated Development Environment. We will work with the Eclipse IDE. You can download
it for your own machine from eclipse.org. There is no prep.
the In lab directions to the lab.
- May 2: Program Testing
- May 4: Work on programming project -
For this lab you must have read programming assignment 3.
However, ignore the pre-lab review questions - they won't be graded.
- May 9: Lab quiz 2 -
- May 11: Understanding a simple C program -
For this lab you must read pages 1-20 of "On to C". (A pdf version of "On to C" can be found in the
WebCT materials for this class, under
"Course Content/Lab Materials".)
There are also some review questions for you to answer in WebCT. During lab you will be required to
translate a small program written in C into Java. The C program you will translate is guess.c and
can be found in
/afs/cats/courses/cmps012a-cm/lab12.
- May 16:
Writing a simple C program -
For this lab you should re-read pages 1-20 of "On to C". (A pdf version of "On to C" can be found in the
WebCT materials for this class, under
"Course Content/Lab Materials".)
During lab you will be required to
translate a small program written in Java into C. The program is TwentyOnePickup.java. This can be
found in /afs/cats/courses/cmps012a-cm/lab13 and is the same as the one in the Chapter 4 of
the text.
- May 18: Work on programming project -
For this lab you must have read programming assignment 4.
Please ignore the pre-lab review questions.
- May 23: Lab quiz 3 - For this quiz you will be expected to write a Java
program.
You will have to do this on your own (without your partner).
You are welcome to refer to "Java by Dissection", the class web pages, and the
Java API documentation from Sun.
You are not allowed to use other notes. You will also be expected to answer some
short answer/multiple choice questions related to C.
- May 25: Arrays in C
- May 30: Work on programming project -
For this lab you must have read programming assignment 5.
There are no pre-lab review questions for this lab.
- June 1: Lab quiz 4 - For this quiz you will be expected to write a very small C program.
You will have to do this on your own (without your partner).
You are welcome to refer to either "Java by Dissection" or "On to C". You are
not allowed to use other notes.
- June 6: A simple Graphical User Interface (GUI) using Java.
- Read the
"Applet Exercise" starting on page 125 (chapter 3) of JBDe2 (or page 91 of JBD),
- look over the non-gui program
InBetween.java
- and the
starter GUI for InBetween in /afs/cats/courses/cmps012a-cm/lab18,
- then answer the pre-lab review questions/quiz.
You can run a complete GUI solution by copying /afs/cats/courses/cmps012a-cm/lab18/inBetween.jar
to your computer/directory and then typing "java -jar inBetween.jar". You CANNOT do this using ssh to
connect to a cats machine. You need to run the program on your computer (either at home or in the lab).
You should be able to in fact just "double click" the inBetween.jar file and have it run.
- June 8: Exam review session.