Dr. Chuck C. Liang
Professor of Computer Science, Hofstra University .
201A Adams Hall
Hempstead, NY 11550
Office Phone: (516 463) 5559
Email: firstname.lastname@example.org (<- click to send me mail)
Official Office Hours: Monday through Wednesday 1-2pm
Documents on goals and objectives: 1, 2, 3
lab 1, lab 2, lab 3, lab 4, lab 5, lab 6, lab 7, lab 8, lab 9, lab 10
lab 7/8 part 2 char-permutatation: lettermap.key
lab 7/8 client program (without decryption)
lab 7/8 server program, so you can test it yourself
lab 7 files: SAMPLE SOLUTION!. Encryption key: use this key.
DNA files for lab 6 dozer gene, drooler gene, sample 1, sample 2, sample 3, sample 4
Support files for lab 5: hroutline.py, racer.gif, additional hints
Skeleton program for lab 2, part II: fig.py
lab 2 part II option: animation template.
Submit all programming assignments on blackboard (csc15L) (please heed the warning about saving versus submitting)
Sample program to add minutes and seconds: timeadd.py
Sample program to rotate a diamond using function encapsulation. Must use python2 on linux or pygtk installation on windows.
Number guessing game where the human does the guessing (includes example of how to generate random numbers and use of arrays to store numbers already guessed)
Some code similar to examples given on 9/26
Code similar to class lecture on 10/3: loops2.py
More examples from 10/5 and 10/7
Programs from 10/10 class
Examples of nested loops. Includes quarters, dimes, nickels and pennies example.
Challenge Problem (Note slight change in description)
some code for strings, including RSA encryption example
substrings program in relation to lab 6.
EXTRA PRACTICE ASSIGNMENT (REQUIRED). Now with sample solutions
Monstertron Game (optional assignment) and associated gifs: professor, goblin, treasure, explosion, skull, head, zerg
. For more difficult challenge, use the bare bones skeleton instead.
Some routines on binary, hex and decimal representations
Python hash tables
Notes on Pointers
Notes and examples of object-oriented programming
... continued ...
More oop examples: circles.py, moreoop.py (metrocard, time)
Object Oriented bouncing circles
non-object oriented and object oriented comparison
Sample graphical user interface program
another gui program.
Recursive triangles program
mergesort (also contains bubblesort)
Final Exam Wednesday 12/14, 8-10am in Adams 204. Study guide available, now with sample solutions to the sample problems.
Read the Python Tutorial (link above), Section 7.2 on reading and writing files.
For an easier way to install python with gtk on a Windows machine, use this file. It's a slightly older version but should be fine for this class. Be sure to uninstall other versions of python first.