Difference between revisions of "Computer Science I"

From WLCS
(Replacing page with '== Wednesday (11/5/08) == '''Warmup:''' * Assume you have the following code, what are the final values of a, b, and c? <source lang="python"> a = 1 b = 5 c = 10 if a == b or...')
Line 1: Line 1:
== Friday (10/31/08) ==
+
== Wednesday (11/5/08) ==
* [[CS1 1st Quarter Exam]]
 
 
 
== Wednesday (10/29/08) ==
 
* 1st Quarter Exam - Friday
 
** Ch. 1 through 4 of HTTLACS
 
* Exam Review
 
* Turn in missing work
 
* Go through [http://openbookproject.net/thinkcs/python/english2e/ch04.xhtml HTTLACS: Ch4] completely. Read through and complete the Ch 4 exercises of HTTLACS
 
* [[Geek Flow Chart Assignment]]
 
 
 
== Monday (10/27/08) ==
 
'''Warmup:'''
 
* Prompt the user for their graduation year
 
* If they are graduating in the year 2009, then print out a message that says "You are a senior!"
 
* Do this for every graduating class at WL.
 
 
 
'''Agenda:'''
 
* 1st Quarter Exam - Friday
 
** Ch. 1 through 4 of HTTLACS
 
* Exam review will be Wednesday
 
* Go through [http://openbookproject.net/thinkcs/python/english2e/ch04.xhtml HTTLACS: Ch4] completely. Read through and complete the Ch 4 exercises of HTTLACS
 
* [[Geek Flow Chart Assignment]]
 
 
 
== Thursday (10/23/08) ==
 
 
'''Warmup:'''
 
'''Warmup:'''
* Create a new python script named warmup_10_23_08.py
+
* Assume you have the following code, what are the final values of a, b, and c?
* Prompt the user to input his/her age
 
* Using an if statement, check to see if he/she is old enough to watch a rated-R movie. 
 
** If they are old enough, then print out a message that says "You may watch rated-R movies!"
 
** If not, then print out a message that says "You may NOT watch rated-R movies!"
 
 
 
'''Agenda:'''
 
* Go through [http://openbookproject.net/thinkcs/python/english2e/ch04.xhtml HTTLACS: Ch4] completely. Read through and complete the Ch 4 exercises of HTTLACS
 
* [[Geek Flow Chart Assignment]]
 
 
 
== Tuesday (10/21/08) ==
 
'''Warmup:'''
 
* Assume you have the following code:
 
  
 
<source lang="python">
 
<source lang="python">
x = input("Please enter a number: ")
+
a = 1
 +
b = 5
 +
c = 10
  
if x < 100
+
if a == b or b < c:
     print x, is less than 100!
+
     temp = c - b
else:
+
    if temp >= b:
     print x, is greater than or equal to 100!
+
        a = 3
 +
    else:
 +
        a = 2
 +
else
 +
    b = 10 - a
 +
     a = 2*a
 
</source>
 
</source>
  
* Identify the syntax errors in the code above.
+
* Return assignments and 1st Quarter Exam
 
+
* Review 1st Quarter Exam
'''Agenda:'''
 
* IB-paced students should follow along the IB CS I website and check to see where they should be
 
** If you keep up with the IB-paced students, then your code will be switched mid-year
 
** As of today, you should have completed the Ch 4 exercises, the [[Geek Flow Chart Assignment]], and are beginning to read Ch 5
 
** If you are slightly behind, then use today to catch up
 
 
 
* Go through [http://openbookproject.net/thinkcs/python/english2e/ch04.xhtml HTTLACS: Ch4] completely. Read through and complete the Ch 4 exercises of HTTLACS
 
 
 
== Friday (10/17/08) ==
 
'''Warmup:'''
 
* Define a function printNumFiveTimes(x) that takes one parameter x
 
* In the function body of printNumFiveTimes(x), print x five times
 
 
 
'''Agenda:'''
 
* English language if review
 
* Guido if review
 
* Python If Overview
 
* Go through [http://openbookproject.net/thinkcs/python/english2e/ch04.xhtml HTTLACS: Ch4] completely. Read through and complete the Ch 4 exercises of HTTLACS
 
 
 
== Wednesday (10/15/08) ==
 
* PSATS - NO CLASS
 
 
 
== Monday (10/13/08) ==
 
* Complete the [http://openbookproject.net/thinkcs/python/english2e/ch03.xhtml HTTLACS: Ch3] exercises today
 
 
 
== Thursday (10/9/08) ==
 
* Demo your [[Quadratic Formula Assignment]]
 
* Math function review
 
* Guido define review
 
* Python Functions Overview
 
* Go through [http://openbookproject.net/thinkcs/python/english2e/ch03.xhtml HTTLACS: Ch3] completely. Read through and complete the Ch 3 exercises of HTTLACS
 
 
 
== Tuesday (10/7/08) ==
 
'''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:'''
 
* 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]]
 
* Math function review
 
* Guido define review
 
* Python Functions Overview
 
* Go through [http://openbookproject.net/thinkcs/python/english2e/ch03.xhtml HTTLACS: Ch3] completely. Read through and complete the Ch 3 exercises of HTTLACS
 
 
 
== Friday (10/3/08) ==
 
* HTTLACS: Ch2 Overview
 
* Read through [http://openbookproject.net/thinkcs/python/english2e/ch02.xhtml HTTLACS: Ch2]
 
* Complete the HTTLACS: Ch2 Exercises by Friday (10/3/08)
 
 
 
== Wednesday (10/1/08) ==
 
* Print out and turn in your HTTLACS: Ch1 Exercises
 
* Read through [http://openbookproject.net/thinkcs/python/english2e/ch02.xhtml HTTLACS: Ch2]
 
* Complete the HTTLACS: Ch2 Exercises by Friday (10/3/08)
 
  
 
== Archives ==
 
== Archives ==
[[CS1 - September]]
+
* [[CS1 - October]]
 +
* [[CS1 - September]]

Revision as of 09:06, 5 November 2008

Wednesday (11/5/08)

Warmup:

  • Assume you have the following code, what are the final values of a, b, and c?
a = 1
b = 5
c = 10

if a == b or b < c:
    temp = c - b
    if temp >= b:
        a = 3
    else:
        a = 2
else
    b = 10 - a
    a = 2*a
  • Return assignments and 1st Quarter Exam
  • Review 1st Quarter Exam

Archives