MCS-177: Introduction to Computer Science I (Spring 2010)
Note:
This web site will be modified as the semester progresses.
Course information
and
syllabus
Projects
Project 1: Candy temperatures
Project 2: Twelve days of Christmas
Project 3: Pig Latin
Project 4: Pig Latin Revisited
Project 5: Storing Scores
Project 6: Analyzing Election Data
Project 7: Image Processing
Project 8: L-Systems
Project 9: Solar system animation
Project 10: A Simulated Ecology
Test topics
Test 1
Test 2
Final Exam
Examples worked in class
Turtle graphics
Inscribed and circumscribed semiperimeters, in the book's style
Archimedes's actual method (more or less)
Liu Hui's method
Caesar cypher
List examples
Input/Output examples
(with some wrong turns edited out)
As preparation, we downloaded into Documents
NST_EST2009_ALLDATA.csv
from the U.S. Census Bureau.
We generated
populations.txt
.
stock correlation
(refactored and with progress printouts)
table processing
using
golf roster
Examples from last day before spring break:
Listings 6.1 and 6.2: negative of an image
Using a while loop to find leftmost digit
Zune leap-year bug (nonterminating while loop)
generalized image processing
with
usage example
based on
sample image
a naming puzzle
and
another one
green screen compositing
; we tried this out using a
scooter
and
Barbara Liskov
scaling down an image
a while loop for which termination is unknown
Recursion:
downUp
and
tree
treeLines:
slow version
and
fast version
kinky Koch curves:
code
and
example usage
L-systems:
code
and
example usage
A simplified Person class:
code
and
example usage
Sentence class:
version 1
,
version 2
, and
example usage
Storage class
and
example usage
SolarSystem class extended with getMassOfSun
and
example usage
ecosystem example with inheritance and non-random selection
getPopulation versions
using list comprehension, while, and recursion
Python documentation
Corrections to the textbook
Instructor:
Max Hailperin
Tutoring:
Sundays 6pm-7pm: Cory
Tuesdays 6pm-7pm: Sam
Tuesdays 7pm-8pm: Cory
Thursdays 6pm-8pm: Cory