Difference between revisions of "IB Computer Science 1"

From WLCS
 
Line 1: Line 1:
== Friday (1/14/11) ==
+
== [[IBCS1 - Archives]] ==
'''Agenda:'''
 
* Complete and demo [[Robot game]].  Due by the end of the week.
 
* Work on [[Dodge game]].  Complete [[Dodge game]] by mid next week.
 
* Begin reading and working through [http://openbookproject.net/thinkCSpy/ch07.html HTTLACS: Ch 7 - Strings]
 
** We will learn about Strings next week after the [[Dodge game]]
 
 
 
== Wednesday (1/12/11) ==
 
'''Warmup:'''
 
* Without using the computer, what does the following code display?
 
 
 
<syntaxhighlight lang="Python">
 
from gasp import *
 
begin_graphics(width=800, height=600, title="Question 23")
 
 
 
x = 0
 
while x < 100:
 
  Circle( (400 + x, 300), x )
 
  x = x + 10
 
 
 
update_when('key_pressed')
 
end_graphics()
 
</syntaxhighlight>
 
 
 
'''Agenda:'''
 
* Complete and demo [[Robot game]].  Due by the end of the week.
 
* Work on [[Dodge game]]
 
* Begin reading and working through [http://openbookproject.net/thinkCSpy/ch07.html HTTLACS: Ch 7 - Strings]
 
 
 
== Monday (1/10/11) ==
 
'''Agenda:'''
 
* 2nd Quarter Exam
 
* Complete and demo [[Robot game]].  Due by the end of the week.
 
* Work on [[Dodge game]]
 
 
 
== Thursday (1/6/11) ==
 
'''Agenda:'''
 
* 2nd Quarter Exam will be on Monday (1/10/11)
 
* 2nd Quarter Exam Review
 
** [[Media:2ndQExamReview.txt]]
 
* input, output, variables, and math expressions
 
* functions
 
** function definitions
 
** function header
 
** function body
 
** return keyword
 
* if statements
 
** comparison operators
 
*** ==
 
*** !=
 
*** <
 
*** >
 
*** <=
 
*** >=
 
** Boolean operators
 
*** and
 
*** or
 
*** combining Boolean operators
 
* while loops
 
** sequences
 
** break keyword
 
* GASP
 
* Catch/Follow game
 
 
 
* Exam Format:
 
** Open and closed-book sections
 
** Multiple-choice
 
** Short-answer code
 
** Identify syntax errors
 
** Identify the purpose of code sections
 
 
 
== Tuesday (1/4/11) ==
 
'''Warmup:'''
 
* Write the while loop that generates the first N terms of the following sequence (prompt for N):
 
** 1, 2, 4, 7, 11, 16, 22, ...
 
 
 
'''Agenda:'''
 
* [[Robot game]]
 
* [[Dodge game]]
 
 
 
== Thursday - Friday (12/23/10 - 12/31/10) ==
 
* Non-denominational winter break
 
 
 
== Wednesday (12/22/10) ==
 
* [[Robot game]]
 
* [[Dodge game]]
 
 
 
== Tuesday - Monday (12/14/10 - 12/20/10) ==
 
'''Agenda:'''
 
* Complete and demo [[Pong]]
 
* [[Robot game]]
 
 
 
== Wednesday - Friday (12/8/10 - 12/10/10) ==
 
'''Warmup:'''
 
* Listed below are the major components of pretty much every type of game
 
*# game loop
 
*# game information and objects
 
*# game rules/behavior
 
*# refresh screen
 
* What is the programming construct/concept that we use for each of the above?
 
 
 
'''Agenda:'''
 
* Complete [[Pong]]
 
 
 
== Monday (12/6/10) ==
 
'''Warmup:'''
 
# Copy, paste, and execute the code from Section 8.8 in [http://openbookproject.net/thinkcs/python/english2e/ch08.html Case Study: Catch]
 
# Make sure you understand how the code works
 
# Comment sections of the code to explain what those lines do
 
 
 
'''Agenda:'''
 
* [http://www.openbookproject.net/thinkcs/python/english2e/app_b.html GASP Reference]
 
* Begin making [[Pong]]
 
 
 
== Thursday (12/2/10) ==
 
'''Agenda:'''
 
* [http://openbookproject.net/thinkcs/python/english2e/ch08.html Case Study: Catch] walkthrough
 
** Animation
 
** Bouncing
 
** Keyboard control/input
 
** Collision detection
 
** Displaying text
 
* Begin making pong, found at the bottom of [http://openbookproject.net/thinkcs/python/english2e/ch08.html Case Study: Catch]
 
 
 
== Archives ==
 
* [[IBCS1 - 1011 - November]]
 
* [[IBCS1 - 1011 - October]]
 
* [[IBCS1 - 1011 - September]]
 

Latest revision as of 08:28, 13 September 2023