programming assignment 3.
Complete the pre-lab review questions to
show you understand the programmming assignment. During lab (if you haven't already done it) you
will need to complete at least the "warmup 1.1." program described in the dicussion group posting.
Submit the warmup 1.1 program (ar any WORKING program) with MORE parts of the program
completed than those from the warmup.
(Nov. 2) 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.
(Nov. 4)
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.
(Nov. 9) Lab quiz 2 - 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.
(Nov. 11) Holiday
(Nov. 16) Arrays in C
(Nov. 18) Lab quiz 3
(Nov. 23) Work on programming assignment 5. Answer the prelab questions (they will be available by 5pm on November 22).
(Nov. 25) Thanksgiving - find time on you own to work on the programming project
(Nov. 30) A simple Graphical User Interface (GUI) using Java.
- Read the
"Applet Exercise" starting on 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.
You can find a specification for the InBetween program at:
http://www.cse.ucsc.edu/classes/cmps012a/Spring04/hw/prog3.html.
(Dec. 2) Lab quiz 4