Difference between revisions of "Computer Science I"

From WLCS
Line 1: Line 1:
 +
== Tuesday (4/22/09) ==
 +
'''Warmup:'''
 +
* Creating a simple screensaver
 +
*# Go onto the Internets and find a small, school-appropriate picture
 +
*# Download the image to the same folder as where you will create the warmup python code
 +
*# Generate a random x variable
 +
*# Generate a random y variable
 +
*# Load the image using your random x and y variables
 +
 +
<source lang="python">
 +
img = Image("FILENAME", (x, y))
 +
</source>
 +
 +
*# Repeat steps 3-5 one hundred times
 +
 
== Friday (4/17/09) ==
 
== Friday (4/17/09) ==
 
'''Warmup:'''
 
'''Warmup:'''

Revision as of 08:04, 21 April 2009

Tuesday (4/22/09)

Warmup:

  • Creating a simple screensaver
    1. Go onto the Internets and find a small, school-appropriate picture
    2. Download the image to the same folder as where you will create the warmup python code
    3. Generate a random x variable
    4. Generate a random y variable
    5. Load the image using your random x and y variables
img = Image("FILENAME", (x, y))
    1. Repeat steps 3-5 one hundred times

Friday (4/17/09)

Warmup:

  • Assume you have the following code, identify the final value of x
x = 1
y = 0
while y < 15:
  x += 2
  y += 1

Agenda - Regular:

Agenda - IB:

  • Complete List Exercises
  • Recreate the Robot game using lists
    • You will create a list for all the X coordinates, a list for all the Y coordinates, and a list for all the Images
    • Use loops to cycle through all the lists
    • Within each of the loops, you can use if statements to check for collisions and the like
  • Dodge game

Wednesday (4/15/09)

  • Complete missing assignments

Friday (4/3/09)

  • 3rd Quarter Exam

Wednesday (4/1/09)

Agenda:

  • Demo all completed assignments
  • 3rd Quarter Exam Review
    • Regular:
      • Loops
      • Strings
      • GASP!
    • IB:
      • Loops
      • Lists
      • GASP!

Archives