Difference between revisions of "IB Computer Science 1"

From WLCS
Line 1: Line 1:
 +
== Thursday (11/4/10) ==
 +
'''Warmup:'''
 +
* Define a function named slope(x1, y1, x2, y2) that takes the four listed parameters
 +
* Calculate the slope and store it in a variable '''m'''
 +
* print m
 +
 +
'''Agenda:'''
 +
* Re-introduction to Functions
 +
** '''return''' keyword
 +
** doctests
 +
* [http://openbookproject.net/thinkCSpy/ch05.html HTTLACS: Ch 5]
 +
* Complete the exercises at the end of Chapter 5 (w/ doctests)
 +
 
== Monday (11/1/10) ==
 
== Monday (11/1/10) ==
 
'''Warmup:'''
 
'''Warmup:'''
Line 14: Line 27:
 
* Try out the GASP code to see if it works
 
* Try out the GASP code to see if it works
 
* Try to draw a stick figure
 
* Try to draw a stick figure
* Re-introduction to Functions
 
** '''return''' keyword
 
** doctests
 
* [http://openbookproject.net/thinkCSpy/ch05.html HTTLACS: Ch 5]
 
* Complete the exercises at the end of Chapter 5 (w/ doctests)
 
  
 
== Thursday (10/28/10) ==
 
== Thursday (10/28/10) ==

Revision as of 10:14, 4 November 2010

Thursday (11/4/10)

Warmup:

  • Define a function named slope(x1, y1, x2, y2) that takes the four listed parameters
  • Calculate the slope and store it in a variable m
  • print m

Agenda:

  • Re-introduction to Functions
    • return keyword
    • doctests
  • HTTLACS: Ch 5
  • Complete the exercises at the end of Chapter 5 (w/ doctests)

Monday (11/1/10)

Warmup:

  • Prompt the user to enter his/her grade (0-100)
  • Using if statements, do the following:
    • if the grade is greater than or equal to 90, then print "You have an A"
    • if the grade is less than 90 and the grade is greater than or equal to 80, then print "You have a B"
    • if the grade is less than 80 and the grade is greater than or equal to 70, then print "You have a C"
    • if the grade is less than 70 and the grade is greater than or equal to 60, then print "You have a D"
    • if the grade is less than 60, then print "You have an E"

Agenda:

Thursday (10/28/10)

Agenda:

Tuesday (10/26/10)

Warmup:

Agenda:

Wednesday - Friday (10/20/10 - 10/22/20)

Warmup:

  1. Prompt the user with the following question: "What is the Washington-Lee mascot?"
    • Be sure to save the raw_input() into a variable!
  2. Use an if statement to check if the user's answer is equal to "Generals"
    • If so, then print out "You got it right!"
    • It not, then print out "Wrong answer buddy!"

Agenda:

Monday (10/18/10)

Warmup:

  • You will create a program that calculates the amount of time it takes for an object to hit the ground (when dropped from a distance)
    1. Prompt the user to enter a number (which will be how high the object is in meters) and store it in a variable s
    2. Calculate t using the formula: t = (s/(0.5*9.8))**0.5
    3. Print out the message: "Your object will hit the ground in t seconds"

Agenda:

Thursday (10/14/10)

Agenda:

Tuesday (10/12/10)

Agenda:

Thursday (10/7/10)

Warmup:

  • Prompt the user to enter a word and store it in a variable named word (HINT: use raw_input())
  • Prompt the user to enter a number and store it in a variable named num (HINT: use input())
  • Print word num times (HINT: multiple word by num)

Agenda:

Tuesday (10/5/10)

Warmup:

  • Prompt the user to enter a number using input() and store it in a variable x
  • Print out the square of the number with a message: "The square of", x, "is", _______
  • Print out the square root of the number with a message: "The square root of", x, "is", _______

Agenda:

Friday (10/1/10)

Warmup:

  • Research on the interwebz the following:
    1. Who invented the Python programming language?
    2. Where was it invented?
    3. Who funded the project to develop Python? (Hint: Guido Van Rossum)

Agenda:

Back To School Night (9/29/10)

Wednesday (9/29/10)

Warmup:

  • Use the internets and find images of a "computer punch card" and the machine that uses them

Agenda:

Monday (9/27/10)

Warmup:

  • Please update Mr. Bui on the GvR Step that you are on by filling out this survey

Agenda:

Thursday (9/23/10)

Warmup:

  • Please update Mr. Bui on the GvR Step that you are on by filling out this survey
  • Create a world that looks like the on the board. It should have a single wall on the same line as Guido
  • Using an if statement, check to see if the front is clear
    • If true, then drop a beeper on the ground
    • Move forward (this should also be under the if statement)
  • Repeat the above if statement 8 times

Agenda:

  • Review If conditionals
  • Review Do looping
  • Work on GvR Steps
  • Introduction to While loops
  • Random GvR 7-13 Demo Checkoffs
  • Quiz next Monday (9/27/10)

Tuesday (9/21/10)

Warmup:

  • Start Guido in the lower left hand corner
  • Create a GvR program named gvr_warmup_9_20.gvr
  • At the top of the code, define turnright
  • Below turnright, define an instruction named stairs
    1. Move Guido one step forward
    2. Make Guido turn left once
    3. Move Guido one step forward
    4. Turn right
  • In the main code, run stairs 5 times

Agenda:

  • Please update Mr. Bui on the GvR Step that you are on by filling out this survey
  • Introduction to Conditionals
  • Work on GvR Steps

Friday (9/17/10)

Warmup:

  • Please update Mr. Bui on the GvR Step that you are on by filling out this survey

Agenda:

  • GvR Steps #1-5 overview
  • Complete GvR Steps #6-10
  • GvR Steps 1-10 Checkoff & Quiz next week
  • If you are done with 1-10...keep going!

Wednesday (9/15/10)

Monday (9/13/10)

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:

Thursday (9/9/10)

  • Finish going over syllabus
  • What is computer science?
  1. Pair up
  2. Take out a sheet of paper
  3. Put both of your names on the top right of the page
  4. Complete the following:
    1. List 3 people/things/systems that use computers (e.g. air traffic control)
    2. For each of the above people/things/systems, write down the information that they use (e.g. flight information)
    3. List 3 things you have done in any science class
    4. Define the term: "to compute" or "computation"
  • How do we solve problems?
  1. Pair up again (with a different partner)
  2. Take out a new sheet of paper and write your names on it
  3. Problem: Mr. Bui is hungry. How would you solve that problem? Write out the steps.
  4. Pause until Mr. Bui says to continue
  5. One solution: Make him a PB&J sandwich. Write out the steps involved in making a PB&J sandwich.
  6. How many steps are necessary in making a PB&J sandwich?
  7. Turn in your steps
  • Share sandwich stories

Tuesday (9/7/10)

  • Introductions
  • IB Computer Science I Syllabus
  • Name cards
  • Misc logistics
    • 20/10 no pass policy
    • Location of bathrooms
    • Sign in/out sheets
  • Lab setup/config
    • Login username is your first initial and lastname (e.g. pbui)
    • Your password is your student ID number
    • Go to System -> Preferences -> About Me -> Change Password
    • Acceptable-use policies apply in this lab!
  • Student Surveys
    • Fill out and submit