IBCS1 - 0910 - February

From WLCS

Tuesday - Friday (2/23/10 - 2/26/10)

Warmup:

  1. Create an empty list named randList
  2. Using a loop that runs 100 times, append 100 random numbers (0-100) to randList
  3. Using another loop and an additional variable, traverse the list and sum up all the numbers
  4. Print out the sum

Agenda:

  • List Review
  • HTTLACS: Ch9 #1-5
  • List Exercises
  • Extra Credit: Sign up and help out with Gotta Gadget
    • March 9 from 4:30-6:30 at Central Library

Monday (2/22/10)

Warmup:

  1. Create an empty list named randList
  2. Using a loop that runs 100 times, append 100 random numbers (0-100) to randList
  3. Using another loop, print out only the odd numbers

Agenda:

Friday (2/19/10)

Warmup:

  1. Create an empty list named randList
  2. Using a loop that runs 100 times, append 100 random numbers (0-100) to randList
  3. Using another loop, count the number of random numbers in the list that are over 50
  4. Print the count

Agenda:

Tuesday - Thursday (2/16/10 - 2/18/10)

Warmup:

  1. Create a new program named gaspReview.py
  2. Open a graphics window
  3. Display a circle on the screen and save it as a variable named c
    • Be sure to create x and y variable coordinates for it
  4. Create a while loop that moves the circle across the screen to the right
    • If the circle's x-coordinate moves beyond the right side, change it's x-coordinate to 0
    • Randomize the y-coordinate between 0 and 600
  5. Test out the program, if it runs, then try adding 2 more circles that have different speeds

Agenda:

  • You will demo the above warmup at beginning of next class
  • Demo Robot game
  • Introduction to Lists
    • HTTLACS: Ch9 #1-5

Wednesday - Friday (2/3/10 - 2/12/10)

  • Snowpacolypsegeddon!

Archives