Difference between revisions of "IB Computer Science I"

From WLCS
(Redirected page to IB Computer Science 1)
 
(46 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Friday (2/19/10) ==
+
#REDIRECT [[IB Computer Science 1]]
'''Warmup:'''
 
# Create an empty list named randList
 
# Using a loop that runs 100 times, append 100 random numbers (0-100) to randList
 
# Using another loop, count the number of random numbers in the list that are over 50
 
# Print the count
 
 
 
'''Agenda:'''
 
* List Review
 
* HTTLACS: Ch9 #1-5
 
* [[List Exercises]]
 
 
 
== Tuesday - Thursday (2/16/10 - 2/18/10) ==
 
'''Warmup:'''
 
# Create a new program named gaspReview.py
 
# Open a graphics window
 
# 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
 
# 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
 
# 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!
 
 
 
== Thursday - Monday (1/21/10 - 1/25/10) ==
 
* My first custom game
 
*# Use the template for a basic game (begin_graphics(), while loop, etc)
 
*# Add a school-appropriate image of your choice and make it move around the screen using the keyboard
 
*# Add 3 items on the screen that can be collected
 
*# There should be a label at the top of the screen that displays the number of items collected
 
*# Add 3 mines on the screen that end the game if the player hits them
 
 
 
* [[Item collection game]]
 
* [[Robot game]]
 
 
 
== Wednesday (1/20/10) ==
 
* Go over 2nd quarter exam
 
 
 
== Thursday - Friday (1/14/10 - 1/15/10) ==
 
'''Warmup:'''
 
* Using google chrome, visit the [https://www.arlingtonva.us/departments/treasurer/forms/DecalVote10_11.asp Vehicle Decal Vote]
 
 
 
'''Agenda:'''
 
* Complete Pong
 
 
 
== Tuesday - Wednesday (1/12/10 - 1/13/10) ==
 
* 2nd Quarter Exam
 
 
 
== Thursday - Monday (1/7/10 - 1/11/10) ==
 
* 2nd Quarter Exam will be next Tuesday (1/12/10)
 
* 2nd Quarter Exam Review
 
** [[Media:2ndQExamReview.txt]]
 
* Complete Pong
 
 
 
== Monday - Wednesday (1/4/10 - 1/6/10) ==
 
'''Warmup:'''
 
* In three words, summarize your winter break
 
 
 
'''Agenda:'''
 
* 2nd Quarter Exam will be next Tuesday (1/12/10)
 
* If-statement review
 
*# Prompt the user to enter a username and store it in a variable named '''username'''
 
*# Prompt the user to enter a password and store it in a variable named '''password'''
 
*# Using an if-statement, check if the username equals "admin" '''and''' the password equals a password of your choosing
 
*# If the login is successful, then print that the "You have successfully logged in"
 
*# If the login fails, then print "Authentication failure!"
 
* While statement
 
*# Practice: Write a loop that prints out 1 through 5
 
*# Write a while loop that runs exactly 5 times, each time the loop runs, print out "Login Trial #N" where N is the loop counter
 
*# Take the if-statement code and put it inside the loop
 
*# If the user successfully logs in, then also '''break''' out of the loop using the '''break''' keyword
 
* strings
 
* Case Study: Catch review
 
* Using your own images
 
* Using your own sounds
 
* Complete your Pong program
 
 
 
== Friday - Monday (12/11/09 - 12/14/09) ==
 
* Case Study: Catch
 
 
 
== Tuesday - Thursday (12/8/09 - 12/10/09) ==
 
'''Warmup:'''
 
* Complete the [http://www.speakup4schools.org/speakup2009/LookupBuilding.aspx Speak Up Survey]
 
** Secret password: arlington08
 
 
 
'''Agenda:'''
 
* Demo missing assignments
 
* [[E-mail Harvester Assignment]]
 
* Complete HTTLACS: Ch7 #1,2, 5-10
 
 
 
== Monday - Friday (11/30/09 - 12/4/09) ==
 
'''Warmup:'''
 
* Assume you have the following code:
 
 
 
<source lang="python">
 
s = ""
 
x = 0
 
while x < 5:
 
  s = s + "a"
 
  x = x + 1
 
print s
 
</source>
 
 
 
* What is printed out after the code executes?  (DO NOT USE A COMPUTER)
 
 
 
'''Agenda:'''
 
* [[E-mail Harvester Assignment]]
 
* Complete HTTLACS: Ch7 #1,2, 5-10
 
 
 
== Monday (11/23/09) ==
 
'''Warmup:'''
 
* Breakfast
 
* 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:'''
 
* Draw the turkey using the GASP functions
 
* [[Media:RandomDemo.java]]
 
* [[Media:JavaIOExample.java]]
 
 
 
== Monday - Friday (11/16/09 - 11/20/09) ==
 
* [[Guessing Game Assignment]]
 
* [[Print Shapes Exercises]]
 
* [[Printing Initials Assignment]]
 
* [[Looping Exercises]]
 
* Using your isPrime(x) function, write a loop that prints out the first 100 prime numbers.
 
 
 
== Monday - Friday (11/9/09 - 11/13/09) ==
 
* Complete HTTLACS: Ch 6 exercises #1-6 - DO NOT submit to SchoolWebLockers
 
* [[Guessing Game Assignment]]
 
* [[Print Shapes Exercises]]
 
* [[Printing Initials Assignment]]
 
* [[Looping Exercises]]
 
 
 
== Monday - Friday (11/2/09 - 11/6/09) ==
 
'''Warmup:'''
 
* Write a loop that prints out the first 100 even numbers
 
 
 
'''Agenda:'''
 
* Demo HTTLACS: Ch 5 exercises
 
* Introduction to Iteration
 
** Complete HTTLACS: Ch 6 exercises #1-6 - 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
 
* Practice Exercise #2
 
** Print out all the numbers that are divisible by 6 from 0 through 100
 
* [[Guessing Game Assignment]]
 
 
 
== Tuesday - Friday (10/27/09 - 10/30/09) ==
 
* Complete the HTTLACS: Ch 4 GASP exercise and demo to Mr. Bui
 
* '''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
 
 
 
== Monday (10/26/09) ==
 
* 1st Quarter Exam
 
 
 
== Friday (10/23/09) ==
 
* 1st Quarter Exam Review
 
** HTTLACS: Ch 1-4.7
 
* [[MPAA calculator assignment]]
 
* [[Geek Flow Chart Assignment]]
 
 
 
== Monday - Thursday (10/19/09 - 10/22/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:'''
 
* [[Quadratic Formula Assignment]]
 
* Complete the HTTLACS: Chapter 4 Exercises #1-5 and upload to SchoolWebLockers
 
* [[MPAA calculator assignment]]
 
* [[Geek Flow Chart Assignment]]
 
 
 
== Thursday (10/15/09) ==
 
'''Warmup:'''
 
* What do the following conditions evaluate to?
 
 
 
<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>
 
 
 
'''Agenda:'''
 
* [[Quadratic Formula Assignment]]
 
* Complete the HTTLACS: Chapter 4 Exercises #1-5 and upload to SchoolWebLockers
 
* [[MPAA calculator assignment]]
 
* [[Geek Flow Chart Assignment]]
 
 
 
== Tuesday - Wednesday (10/13/09 - 10/14/09) ==
 
* [[Quadratic Formula Assignment]]
 
* Complete the HTTLACS: Chapter 4 Exercises #1-5 and upload to SchoolWebLockers
 
* [[MPAA calculator assignment]]
 
* [[Geek Flow Chart Assignment]]
 
 
 
== Thursday - Friday (10/7/09 - 10/8/09) ==
 
'''Warmup:'''
 
* Create a python script that prompts the user for three integer variables: month, day, and year
 
* Print your birthday using the variables
 
* Your birthday should use the following format: M/D/Y
 
 
 
'''Agenda:'''
 
* Complete the [[Quadratic Formula Assignment]]
 
* Introduction to Python Conditionals (if-statement)
 
** [http://openbookproject.net/thinkcs/python/english2e/ch04.html How to Think Like a Computer Scientist: Chapter 4]
 
** [[Media:BooleanLogic.ppt]]
 
* Complete the HTTLACS: Chapter 4 Exercises #1-5 and upload to SchoolWebLockers
 
* [[MPAA calculator assignment]]
 
 
 
== Monday - Tuesday (10/5/09 - 10/6/09) ==
 
* Introduction to Python Functions
 
* [http://openbookproject.net/thinkcs/python/english2e/ch03.html How to Think Like a Computer Scientist: Chapter 3]
 
* Complete the HTTLACS: Chapter 3 Exercises and upload to SchoolWebLockers
 
 
 
== Thursday (10/1/09) ==
 
* Introduction to Python
 
* [http://openbookproject.net/thinkcs/python/english2e/ch01.html How to Think Like a Computer Scientist: Chapter 1]
 
* Complete the HTTLACS: Chapter 1 Exercises and upload to SchoolWebLockers
 
* [http://openbookproject.net/thinkcs/python/english2e/ch02.html HTTLACS: Ch 2]
 
* Complete the HTTLACS: Chapter 2 Exercises and upload to SchoolWebLockers
 
 
 
== Archives ==
 
* [[IBCS1 - May]]
 
* [[IBCS1 - April]]
 
* [[IBCS1 - March]]
 
* [[IBCS1 - February]]
 
* [[IBCS1 - January]]
 
* [[IBCS1 - December]]
 
* [[IBCS1 - November]]
 
* [[IBCS1 - October]]
 
* [[IBCS1 - September]]
 

Latest revision as of 11:19, 24 August 2010