Difference between revisions of "IB Computer Science 1"

From WLCS
 
Line 1: Line 1:
== Monday (9/26/11) ==
+
== [[IBCS1 - Archives]] ==
'''Warmup:'''
 
* Give an example for each of the following data types:
 
** int
 
** float or double
 
** string
 
 
 
'''Agenda:'''
 
* Values, Types, and Variables Review
 
* Input and Output
 
 
 
 
 
== Thursday (9/22/11) ==
 
'''Warmup:'''
 
# Define a function named drawSquare() that draws a 100x100 square
 
# Test out your function by making several drawSquare() function calls
 
 
 
'''Agenda:'''
 
* Demo [[Python - House Function Assignment]]
 
* Introduction to Values, Types, and Variables
 
* Complete [[Values, Types, and Variables Identification assignment]]
 
* Function parameters
 
** Defining and calling a function with one parameter
 
** Defining and calling a function with more than one parameter
 
* Redo the House Function
 
*# After demonstrating the House Function the first time, change the function by adding 2 parameters
 
*# Add x and y parameters to the function header's parameter list
 
*# Add goto(x,y) at the beginning of the function body so that the house is drawn at (x,y)
 
*# Don't forget to use penup() and pendown()
 
*# Test your new function by making a function call using parameters:
 
 
 
<source lang="Python">
 
house(0,200)
 
house(-200,200)
 
house(0,-200)
 
</source>
 
 
 
== Tuesday (9/20/11) ==
 
'''Warmup:'''
 
* Draw a triangle on the screen that has dots at each of its corners
 
 
 
'''Agenda:'''
 
* Introduction to Functions
 
** Function definition
 
*** Function header
 
*** Function body
 
** Function call
 
* [[Python - House Function Assignment]]
 
 
 
== Friday (9/16/11) ==
 
'''Agenda:'''
 
* Make sure you demo the [[Python - Moving and Drawing Assignment]]
 
* More Python Turtle Commands
 
** exitonclick() reminder
 
** home()
 
** goto()
 
** circle()
 
** dot()
 
* Practice
 
** Draw a bullseye target in the middle of the screen
 
** Draw dots in a row
 
** Draw a circle in each of the four corners
 
** Draw dots in a row of increasing size that are touching each other
 
 
 
== Monday - Wednesday (9/12/11 - 9/14/11) ==
 
'''Warmup:'''
 
* Using the power of the internets, what was the first commercial graphical user interface (GUI) developed for the personal computer?
 
* In what year was the first GUI introduced?
 
* In what year was the Unix operating system developed?
 
 
 
'''Agenda:'''
 
* [[Introduction to Unix/Linux]]
 
* [[Media:BasicProgrammingTerms.ppt]]
 
* Introduction to Python Turtle
 
** [http://docs.python.org/py3k/library/turtle.html Python turtle library]
 
* [[Python - Moving and Drawing Assignment]]
 
 
 
== Tuesday - Thursday (9/6/11 - 9/8/11) ==
 
* Introductions
 
* Name cards
 
* Lab setup/config
 
** Login username is your first initial and lastname (e.g. pbui)
 
** Your password is your student ID number
 
** Go to Apple (upper left) -> System Preferences -> Accounts -> Change Password
 
** Acceptable-use policies apply in this lab!
 
* [http://spreadsheets.google.com/viewform?key=p6_k1SMbS2zvMHJNJBBkFPA Student Surveys]
 
** Fill out and submit
 
* Misc logistics
 
** 20/10 no pass policy
 
** Location of bathrooms
 
** Sign in/out sheets
 
* [[IB Computer Science I Syllabus]]
 
 
 
* What is computer science?
 
*# List 3 people/things/systems that use computers (e.g. air traffic control)
 
*# For each of the above people/things/systems, write down the information that they use (e.g. flight information)
 
*# List 3 things you have done in any science class
 
*# Define the term: "to compute" or "computation"
 
 
 
* How many steps are necessary in making a PB&J sandwich?
 

Latest revision as of 08:28, 13 September 2023