Difference between revisions of "IB Computer Science 1"

From WLCS
Line 4: Line 4:
 
*# Who invented the Python programming language?
 
*# Who invented the Python programming language?
 
*# Where was it invented?
 
*# Where was it invented?
*# Who funded the project to develop Python?
+
*# Who funded the project to develop Python? (Hint: [http://en.wikipedia.org/wiki/Guido_van_Rossum Guido Van Rossum])
  
 
'''Agenda:'''
 
'''Agenda:'''
 
* Any missing quiz demonstrations should be shown when Mr. Bui gets back
 
* Any missing quiz demonstrations should be shown when Mr. Bui gets back
* Introduction to data values, variables, and etc.
+
* Introduction to data values, variables, and etc.
 +
* Read through [http://openbookproject.net/thinkcs/python/english2e/ch02.html How to Think Like a Computer Scientist: Chapter 2]
 +
* Complete the following exercises
 +
*# Try the following code in a program: '''print n = 7'''
 +
*#* The above should crash, change it to two lines of code so that you can '''print n''' and it works
 +
*# Take the sentence: '''All work and no play makes Jack a dull boy.''' Store each word in a separate variable, then print out the sentence on one line using print.
 +
*# Add parenthesis to the expression 6 * 1 - 2 to change its value from 4 to -6.
 +
*# Take the following code:
 +
<source lang="Python>
 +
print "Hello"
 +
print "Washington-Lee"
 +
print "Generals"
 +
</source>
 +
 
 +
and comment out (#) the '''print "Washington-Lee" ''' so that it does not run.
 +
*# test
  
 
== Back To School Night (9/29/10) ==
 
== Back To School Night (9/29/10) ==

Revision as of 10:32, 1 October 2010

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:

  • Any missing quiz demonstrations should be shown when Mr. Bui gets back
  • Introduction to data values, variables, and etc.
  • Read through How to Think Like a Computer Scientist: Chapter 2
  • Complete the following exercises
    1. Try the following code in a program: print n = 7
      • The above should crash, change it to two lines of code so that you can print n and it works
    2. Take the sentence: All work and no play makes Jack a dull boy. Store each word in a separate variable, then print out the sentence on one line using print.
    3. Add parenthesis to the expression 6 * 1 - 2 to change its value from 4 to -6.
    4. Take the following code:
print "Hello"
print "Washington-Lee"
print "Generals"

and comment out (#) the print "Washington-Lee" so that it does not run.

    1. test

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:

  • Cybersecurity Field Trip - October 15th
  • Introduction to Python
  • How to Think Like a Computer Scientist: Chapter 1
  • Complete the following exercises (be sure to number your answers and copy the question text):
    1. Put your name and date at the top of the text file
    2. Define the words high-level language and low-level language to a middle-schooler
    3. What is a program?
    4. What does debugging mean?
    5. Define syntax errors, runtime errors, and semantic errors
    6. What is the difference between a formal language and a natural language?
    7. Write the print statement that prints the following "YOURNAME is a rock star!"
    8. Write a program that says “All work and no play makes Jack a dull boy” 10 times.
  • Submit your answers via School Web Lockers
  • Introduction to data values, variables, and etc.

Monday (9/27/10)

Warmup:

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

Agenda:

  • GvR Quiz today during 2nd half of class (Steps 1-13)
  • GvR Steps 1-13 Quiz
  • Finish any GvR step demos
  • Introduction to Python
  • How to Think Like a Computer Scientist: Chapter 1
  • Complete the following exercises (be sure to number your answers and copy the question text):
    1. Put your name and date at the top of the text file
    2. Define the words high-level language and low-level language to a middle-schooler
    3. What is a program?
    4. What does debugging mean?
    5. Define syntax errors, runtime errors, and semantic errors
    6. What is the difference between a formal language and a natural language?
    7. Write the print statement that prints the following "YOURNAME is a rock star!"
    8. Write a program that says “All work and no play makes Jack a dull boy” 10 times.
  • Submit your answers to via School Web Lockers

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