Welcome to CS 8 Introduction to Computer Science!
CS 8 Programming Assignments
Assignment |
Hints |
PA08: ImageEffects due 11pm, Dec 12 (the last PA, yea!) |
- This PA weights 2x as any of the other PAs. Be sure to work on it and earn more points towards then end of quarter!
- Download cImage.py.
If you encounter "AttributeError: 'tuple' object has no attribute 'split'," change "p = [int(j) for j in self.im.get(x,y).split()]" to "p = self.im.get(x,y)" in cImage.py line 310 (details here). This is a known bug in cImage between Python 3.2 and 3.4.
- Slide Lab09
|
PA07: Illustration due 11pm, Dec 5 |
- Note: This is a regular PA, not an extra-credit one.
- Use Prof. Koc's code as an example, and create your own graph by changing things inside draw(xs).
- Slide Lab08
Most Creative One from my labs |
Most Creative One from Bingzhe's labs |
|
|
|
Nov. 27 |
- Happy Thanksgiving!
|
PA06: 20Qs-like due 11pm, Nov 21 |
- PA06 Hints
|
Prepare Midterm |
- Make sure you did the Sample Midterm!
|
PA05: Dictionary Lookup due 11pm, Nov 14 |
- Follow Prof. Koc's PA05 webpage and understand how to read/write files.
- PA05 Hints
|
PA04: Drunkard's Walk due 11pm, Nov 7 |
- It is due on FRIDAY instead of Thursday, yea!
- Optional: form a team of two (who have the same TA), and 1 person submits this PA, and please include your team member names in your main program.
- Slide Lab05
|
PA03: Vigenere Cipher! due 11pm, Oct 30 |
- Use ord, chr, and modular (%) arithmetic. Do not import.
- Understand what is Vigenere Cipher before you start.
- Check my slides for hints.
- To verify, simply use: print(decVigenere('mykey',encVigenere('mykey','something'))) and see if it prints "something".
|
PA02: 5 functions due 11pm, Oct 23 |
- Follow Emilie's handout for pa02 is a good choice!
- My Lab03 Slides
- Check Python Turtle for using turtle
- You can use this python file to test the correctness of your code.
|
PA01: Sum(i,j) due 11pm, Oct 16 |
- def Sum(i,j):
- Use if-statement and for-loop
- Check Emilie's handout for pa01
- You can use this python file to test the correctness of your code.
|
The views and opinions expressed in this page are strictly those of the page author.
Copyright © 2014-2020 Yanzi Zhu. All Rights Reserved.