Difference between revisions of "Computer Science"

From WLCS
Line 9: Line 9:
 
** [[Media:Lists_Python.ppt]]
 
** [[Media:Lists_Python.ppt]]
 
** Complete the [[Python List Exercises]]
 
** Complete the [[Python List Exercises]]
 +
 +
* '''If you are a senior, please fill out the following:'''
 +
** [https://spreadsheets.google.com/viewform?hl=en&formkey=cmpucDFrRDJUekY5VEphYzE2V25ZSVE6MA..#gid=0 Graduating Senior Survey]
 +
** [https://spreadsheets.google.com/viewform?formkey=dERxTUlReGxiTEowMlpVTnNjazJsbUE6MQ End-of-Course Survey]
  
 
== Monday - Wednesday (5/7/12 - 5/9/12) ==
 
== Monday - Wednesday (5/7/12 - 5/9/12) ==

Revision as of 10:12, 10 May 2012

Thursday (5/10/12)

Warmup:

  1. Create a python program named listWarmup.py
  2. Create a list named students and have it contain the names of 5 other students in the room
  3. Print out students

Agenda:

Monday - Wednesday (5/7/12 - 5/9/12)

Warmup:

  1. Create a python program named shoppingWarmup.py
  2. Think of 5 different food items for a grocery list
  3. Put each of the items in variables
  4. Print out all the items

Agenda:

Thursday - Friday (5/3/12 - 5/4/12)

Agenda:

Tuesday - Wednesday (5/1/12 - 5/2/12)

Agenda:

Monday (4/30/12)

Warmup:

  1. Define a function named slope(x1, y1, x2, y2) that returns the slope using the input parameters
  2. Be sure to test your function with 3-4 different function calls

Agenda:

  • Translate the following words into pig latin:
    • Washington
    • Generals
    • Chair
    • Street
    • I
  • Begin working on Pig Latin Translator

Thursday (4/26/12)

Warm-up:

  1. Bring up your email harvester code.
  2. Write print() and function calls to test each function to see if they work properly
    • Example: print(findAtSymbol("bob@mail.com"))
    • Example: print(find("banana", "a", 2))
    • Example: print(findBackwards("banana", "a", 5))

Agenda:

Wednesday (4/25/12)

Agenda:

Tuesday (4/24/12)

Period 1 - Agenda:

Period 3 - Agenda:

Monday (4/23/12)

Agenda:

Friday (4/20/12)

Period 1 - Agenda:

Period 3 - Agenda:

Thursday (4/19/12)

Warmup:

Agenda:

Wednesday (4/18/12)

Period 1 - Agenda:

Period 3 - Agenda:

Tuesday (4/17/12)

Monday (4/16/12)

Warmup:

  1. Prompt the user for a number, N
  2. Write a loop that prints out the first N terms of the following arithmetic sequence
    • 4, 7, 10, 13, 16, ... (HINT: you may want to use more than one variable)

Period 1 - Agenda:

Period 3 - Agenda:

Friday (4/13/12)

Warmup:

  • Assume you have the string s = "Washington-Lee"
  1. What is the index of the "W"?
  2. What is the index of the "L"?
  3. What is the slice for just "Washington"?
  4. What is the slice for just "ton"?

Agenda:

Thursday - Friday (4/12/12 - 4/13/12)

Warmup:

  • Using loops and strings:
  • Copy and try out the following code:
s = "trol"
x = 0
while x < 5:
  s = s + "lo"
  x = x + 1
print(s)
  • What does the above code produce?
  • Tweak the code so that it prints "hahahahahahahaha"

Period 1 - Agenda:

Period 3 - Agenda:

Tuesday (4/10/12)

Warmup:

  • Write a loop that prints out the odd numbers from 33 down to 1
  • HINT: Start with your loop template:
x = 0
while x < 10:
  print(x)
  x = x + 1

Period 1 - Agenda:

Period 3 - Agenda:

  • Return and go over 3rd Quarter Exam

Monday - Friday (4/2/12 - 4/6/12)

  • Spring Break

Archives