Difference between revisions of "Computer Science I"

From WLCS
Line 17: Line 17:
 
</source>
 
</source>
  
'''Agenda:'''
+
'''Regular:'''
 
* Complete the HTTLACS: Chapter 4 Exercises #1-5 and upload to SchoolWebLockers.  This should be done NOW.
 
* Complete the HTTLACS: Chapter 4 Exercises #1-5 and upload to SchoolWebLockers.  This should be done NOW.
 
* [[MPAA calculator assignment]]
 
* [[MPAA calculator assignment]]
 
* [[Geek Flow Chart Assignment]]
 
* [[Geek Flow Chart Assignment]]
 +
 +
'''IB:'''
 +
* '''Work through HTTLACS: Ch 5''' and by work through, Mr. Bui means that you should try out all the code.
 +
* Complete the HTTLACS: Ch 5 exercises
  
 
== Friday (11/6/09) ==
 
== Friday (11/6/09) ==

Revision as of 08:52, 10 November 2009

Tuesday (11/10/09)

Warmup:

  • What do the following conditions evaluate to? (Hint: Remember how we use AND, OR, and NOT in English)
not(False)
True or False
False and False
True and False
not(True or False)
True or True
False and True
False or True
not(False) and True
not(True) or False
not(True) or True

Regular:

IB:

  • Work through HTTLACS: Ch 5 and by work through, Mr. Bui means that you should try out all the code.
  • Complete the HTTLACS: Ch 5 exercises

Friday (11/6/09)

Warmup:

  • What does the following code print?
x = 9
y = 10
z = 4

if x < y:
  if z < 0:
    print "Washington"
  else:
    print "Lee"
else:
  print "Generals"

Agenda:

Wednesday (11/4/09)

Warmup:

  • Prompt the user for their grade (9-12)
  • Check if they are in 9th grade, if so, then print "You are a freshman"
  • Check if they are in 10th grade, if so, then print "You are a sophomore
  • Check if they are in 11th grade, if so, then print "You are a junior"
  • Check if they are in 12th grade, if so, then print "You are a senior"

Agenda:

Friday (10/30/09)

Warmup:

  • Prompt the user for their age and store it in a variable
  • Write an if-statement that checks the age variable to see if it is less than 18
    • If the age is less than 18, then print "You are still a minor"
    • else, print "The courts recognize you as an adult!...uh oh"

Regular:

IB:

Wednesday (10/28/09)

  • 1st Quarter Exam

Regular:

IB:

Monday (10/26/09)

Thursday (10/22/09)

Warmup:

  • Define a function named timesFive(x) that takes one x parameter
  • In the function body, have timesFive() print out the product of x times 5

Agenda:

Tuesday (10/20/09)

Agenda:

Thursday (10/16/09)

Warmup:

  • Prompt the user for numerical input and store it in two variables: x and y
  • Print the result of x to the y power (Hint: ** is used to take numbers to powers)

Agenda:

Friday - Wednesday (10/9/09 - 10/14/09)

Warmup:

  • Create a python script that has three variables: month, day, and year
  • Store your birthday in the aforementioned variables
  • Print your birthday using the variables
  • Your birthday should use the following format: M/D/Y

Agenda:

  • Make sure that you have submitted in HTTLACS: Ch 1 & 2 Exercises via SchoolWebLockers
  • User input!
    • Let's add some user input to your warmup
    • Instead of hard-coding the month, day, and year variables, prompt the user for input three times and store the user's input in the variables
  • Quadratic Formula Assignment

Monday - Wednesday (10/5/09 - 10/7/09)

Thursday (10/1/09)

Archives