Dr. Chuck C. Liang
Assistant Professor of Computer Science, Hofstra University .
201A Adams Hall
Hempstead, NY 11550
Office Phone: (516 463) 5559
Email: email@example.com (<- click to send me mail)
Official Office Hours: MTuWTh 10:30-11:30am or by appointment
lab1, lab2, lab3 , lab4, lab5, lab6, lab7, lab8, lab9, lab10, lab11
Gif images for Lab 9: horseframe1.gif,
To download, right click on link and select "save image as". You may replace the background image with a gif of your own.
timergui.C: graphical component for lab 8.
NEW VERSION available. Gets rid of the cursor prompt
and does not skip numbers. Just download and recompile your program.
(sorry, reset still doesn't work yet).
Counterpart to lab 7 (guessing game where human does the guessing).
animation.C <- here's the component you'll need to include for lab 5.
Independent programming assignment. Here is the companion program you need: drawing.C.
timegui.C: graphical component for lab 2, part 2
program illustrating functions written in class 2/26. You can also find a different version of "figures.c" here, which draws diamonds using functions. However, for the stick figure assignment, don't use functions. Just make sure everything is relative to variables.
Sample Program illustrating the definition and use of a class (time with minutes and seconds).
The Bouncing Spheres Program
Program written in class on 4/23. Translates 7-letter word to a phone number.
Bubble Sort program
Additional sample functions on arrays and strings
Program on strings that extracts the first and last names (from 5/9 class)
Midterm guide, with sample problems
Exam guide sample solutions: 1, 2, 3 NOTE: a couple of problems here would be easier to do with "&&" and "||", but you do not have to use "&&" and "||" on the test. Also, in the last problem the variables should all be doubles, not ints.
Final Exam Guide, now with
WARNING: sample programs posted here may lack comments because they were sometimes written as I was explaining things in class. Your programs must contain more comments than these sample programs.
Exam Times: Section 1 (MWF class): Monday 5/14, 1:30-3:30pm. Section A (MW class): Wednesday 5/16, 6:15-8:15pm. Location will be our regular classroom. The exams for the two sections will be different. You must go to the right section.