Schedule

Tuesday (5/6)

Agenda:

  • Complete the list exercises found here


Friday (2/15) - Monday (2/19)

Agenda

  • Visit WLHS Moodle Server
  • Create an account on our moodle server
  • Login and enroll in the CS1 class
  • View and submit moodle test assignment
  • Complete any missing assignments and demo to Mr. Bui ASAP
  • Read through Chapter 7, and complete exercises #1-2, 5-10
  • Once you have completed #1-2, 5-6, you may print it out and place it in the tray on Mr. Bui's desk
  • You should continue on to #7-10

Due: Chapter 7 #1-2, 5-6 are due at the end of today


Wednesday (2/13) - Thursday (2/14)

Warmup:

  • This warmup is graded and should be demo-ed to Mr. Bui for credit.
  • Define a function loopers(x) that takes one x parameter
  • Your function should use a loop to print out all the squares from 0 through x2
  • Outside of the function, prompt the user for a number N and use it in a function call to loopers(N)
  • Example: 1, 4, 9, 16, ... , x2

Agenda:

  • Introduction to Strings
    • Review: storing strings into variables
    • Objectives: You will learn to ...
      • access a single character in a string
      • get the length (size) of a string
      • walk/traverse through a string
      • grab a slice of string
      • compare strings ( <, >, = )
  • Read through Chapter 7, and complete exercises #1-2, 5-10

Due: Print Rectangle, Print Triangle, and Initials are due now

Due: Chapter 7 #1-2, 5-6 are due at the end of the week


Monday (2/11) - Tuesday (2/12)

Agenda:

  • Demo all assignments
  • Sequences will be marked off as late
  • PrintRectangle, PrintTriangle, and Initials are due today and tomorrow
  • Introduction to Strings
  • Read through Chapter 7, and complete exercises #1-3, 5-10

Due: Chapter 7 #1-3, 5 are due at the end of the week

Due: Print Rectangle, Print Triangle, and Initials are due today


Wednesday (2/6) - Friday (2/8)

Agenda:

  • All assignments are described in the previous day's agenda
  • Complete the following assignments because you will need to demonstrate the following to Mr. Bui:
    • Powers of 3 sequence
    • Fibonacci sequence
    • Factorial function
    • Factorial sequence
    • Print Rectangle
    • Print Triangle
    • Initials - Example

Due: Print Rectangle, Print Triangle, and Initials are due Monday (2/11)


Monday (2/4) - Tuesday (2/5)

Warmup:

  • Prompt the user for a number N
  • First write a loop that prints out N *s
  • Now add another loop that prints out an N by N square of *s
  • Example: N=3

    ***
    ***
    ***

Agenda:

  • Complete the Fibonacci sequence from last week. (1, 1, 2, 3, 5, 8, 13, 21, ...)
  • Factorial function
    • Define a function factorial(x) that takes one x parameter. Use a loop in the function and multiply all the numbers from 1 through x. The function should return this number when the loop is done
  • Use the factorial function to complete the factorial sequence (1, 1, 2, 6, 24, 120, ...)
  • Repeated Menu System
    • For the repeated menu system, you will print out a menu to the user and prompt them for a choice. You may print out a menu of your choice.
    • Using a loop, repeatedly cycle through the menu while the user's choice is invalid
  • Print Rectangle
    • Prompt the user for a height number
    • Prompt the user for a width number
    • Using the height and width, print out a rectangle of *s.

      Example:
      h = 3
      w = 5

      *****
      *****
      *****
  • Print Triangle
    • Prompt the user for a number N
    • Print out a triangle that looks like the following:

      Example: N = 4

      *
      **
      ***
      ****
  • Using your knowledge of Printing shapes using ASCII characters...write a program that prints out your initials in large ASCII blocks of characters

Due: Powers of 3 sequence, Fibonacci sequence, and factorial sequence DUE ... NOW


Thursday (1/31) - Friday (2/1)

Warmup:

  • Prompt the user for a number N
  • Using a loop, print out all the numbers from 0 up to but not including N
  • Tweak your code so that it prints out the following sequence: 3, 9, 15...
  • HINT: Odd numbers that are divisible by 3

Agenda:

  • For each of the following sequences, first prompt the user for a number N and print out the first N terms of the sequence
    • 1, 3, 9, 27, 81, ...
    • 1, 1, 2, 3, 5, 8, 13, 21, ...
    • 1, 1, 2, 6, 24, 120, ... (HINT: factorial + 2 loops)
  • Repeated Menu System
    • For the repeated menu system, you will print out a menu to the user and prompt them for a choice. You may print out a menu of your choice.
    • Using a loop, repeatedly cycle through the menu while the user's choice is invalid

Friday (1/25)

Agenda:

  • Period 1:
    • Obtain a Python Crossword Puzzle / Word Search from the substitute. Complete the worksheet and turn it into the substitute. Once you have completed the worksheet, begin working on the "All Periods" assignment assigned below
  • All Periods (1,3,6):
    • Read and work through sections 6.4 through 6.15 of HTTLACS.
    • Complete the Chapter 6 exercises
    • Mr. Bui will collect the Chapter 6 exercises next week

Due: Peroid 1: Python puzzles worksheet due today

Due: All Peroids: HTTLACS Chapter 6 exercises due next week


Thursday (1/17) - Thursday (1/24)

Warmup:

  • Write a loop that prints out all the numbers divisible by 5 between 100 and 200

Agenda:

  • IT Job Shadow - First 10 students to bring back all forms completed and signed will attend the Smithsonian Institution IT Job Shadow Day on February 7th
  • Complete the advanced features of the Guessing Game
  • 2nd Quarter Exam
    • Part 1: multiple-choice, closed everything
    • Please DO NOT write on the exam. You will have 15 minutes to complete Part 1 of the exam. All you need is a #2 pencil and a Scantron quiz strip
    • Part 2: free response, open-book/computer, closed-person
    • Download Part 2 and save it on your computer. You will be inserting your answers directly into the document. After you have completed the test, make sure that you have answered all the questions. Print out the test and place it on Mr. Bui's desk
    • Java students: Download the Java version of Part 2 here


Tuesday(1/15) - Wednesday (1/16)

Warmup:

  • Write a loop that prints out all the numbers from 1 through 10
  • Using another variable, sum up all the numbers from 1 through 10
  • After the loop, print out the average of all the numbers. Hint: How do you figure out the average of any group of numbers?

Agenda:

  • 2nd Quarter Exam Review: - open-note, open-book, CLOSED-person
    • Chapter 2 -- Variables, expressions, and statements
    • Chapter 3 -- Functions
      • function defintions
      • function calls
      • parameters
    • Chapter 4 -- Conditionals
      • Boolean values and variables
      • modulus (%) operator
      • comparison operators (e.g., <, >)
      • logical operators (e.g., and, or)
      • Boolean conditional expressions (e.g., 2 > x and y < 3)
      • if statements
      • if-elif-else statements
    • Chapter 5 -- Fruitful functions
      • return statements
      Chapter 6 -- Iteration
      • while loops
      • counter variables
      • infinite loops
  • If you are done with the preliminary/basic Guessing Game, you may demo it to Mr. Bui (12 pts)
  • Add the additional Guessing Game features:
    • Keep track of the number of guesses that the player makes, and print it out at the very end (1 pt)
    • Add some way for the player to lose (e.g. if they end up guessing more than 7 times) (1 pt)
    • Add another loop so that you can play the game again after it is over (1 pt)
  • Once you have completed the Guessing Game, read through all of Ch 6: Iteration

Due: GuessingGame due tomorrow (1/16)


Friday (1/11) - Monday (1/14)

Warmup:

  • Write a loop that prints out "All work and no play makes Jack a dull boy" 100 times
  • Write a loop that prints out all the even numbers from 0 through 100

Agenda:

  • Work on your Guessing Game
  • Once you have completed the preliminary Guessing Game (12 pts), you should attempt to add the following:
  • Keep track of the number of guesses that the player makes, and print it out at the very end (1 pt)
  • Add some way for the player to lose (e.g. if they end up guessing more than 7 times) (1 pt)
  • Add another loop so that you can play the game again after it is over (1 pt)

Due: GuessingGame due Wednesday (1/16)


Wednesday (1/9) - Thursday (1/10)

Warmup:

  • Complete your MPAACalculator and demo it to Mr. Bui
  • While waiting to be checked off, you should go to Ch 6: Iteration and review looping

Agenda:

  • While loops
  • Counter variables
  • Infinite loops!
  • Menu systems and loops
  • ...more looping fun!
  • Counting Assignment
    • Write a loop that prints out all the numbers from 1 through 2008
    • Test your code!
    • Prior to the while loop, initialize a variable to 0
    • Using this new variable, add up all the numbers from 1 through 2008
    • Print out the total
  • Guessing Game
    • As a class, we will play a guessing game.
    • Write down the steps of playing the guessing game
    • Copy these steps to a python program named guessingGame.py
    • Make sure your steps in the program are commented out using the # (pound) sign
    • Go through each step and write the python code for the Guessing Game!


Monday (1/7) - Tuesday (1/8)

Agenda:

  • Binary Quiz!
  • MPAA Calculator
    • Write a program named MPAAcalc.py
    • Print out a message that says, "Welcome to the MPAA calculator! You will be prompted for your age and the rating for your movie..."
    • Prompt the user for his/her age
    • Display a menu of different ratings

      a) G - General Audiences
      b) PG - Parental guidance suggested
      c) PG-13 - Parents strongly cautioned
      d) R - Restricted
      e) NC-17 - Children under 17 are not admitted

    • Prompt the user for one of the above choices
    • Calculate using their age and the rating system, whether or not they are allowed to view the movie. If they are required to have an adult present, then print that out too.
      • G - all ages
      • PG - all ages, but parental guidance is recommended for those under 13
      • PG-13 - parental guidance required for those under 13
      • R - parental guidance required for those under 17
      • NC-17 - nobody under 17 allowed in
  • Once you have completed the MPAACalculator, continue on by reading Ch 6: Iteration of HTTLACS
  • If Chapter 6 is boring, then you can continue on by working on the Guessing Game


Friday (1/4)

Warmup:

  • Create a python script named warmup_1_4.py
  • Prompt the user for a number and store it in a variable named num
  • Check if the number is less than 18, and if it is, print out "Your age indicates that you are a minor"
  • Otherwise, print out "Your age indicates that you are an adult (grown up)"

Agenda:

  • Write ASCII messages
  • Swap ASCII messages
  • Decipher ASCII message
  • Python review
    • if statements
      • Write a program named MPAAcalc.py
      • Print out a message that says, "Welcome to the MPAA calculator! You will be prompted for your age and the rating for your movie..."
      • Prompt the user for his/her age
      • Display a menu of different ratings

        a) G - General Audiences
        b) PG - Parental guidance suggested
        c) PG-13 - Parents strongly cautioned
        d) R - Restricted
        e) NC-17 - Children under 17 are not admitted

      • Prompt the user for one of the above choices
      • Calculate using their age and the rating system, whether or not they are allowed to view the movie. If they are required to have an adult present, then print that out too.


Monday (12/10) - Wednesday (12/12)

Warmup:

  • Create a python script named warmup_12_11.py
  • Prompt the user for a number and store it in a variable named num
  • Print out the number's square if the number is less than 50
  • Print out the number's square root if the number is greater than or equal to 50

Agenda:

  • Work on your CYOA game if you have not finished it yet
  • If you have not completed your CYOA game evaluations, then you may do so during this time. Once you are done evaluating other games, then turn in your game evaluation sheet to Mr. Bui.
  • If you have completed the CYOA evaluation, then continue reading Ch 6: Iteration of HTTLACS
  • After reading and working through Ch6, complete the exercises found at the end of Ch 6

Due: CYOA evaluation sheet due!

Due: Chapter 6 Exercises due at the end of this week!


Friday (12/7)

Agenda:

  • Work on your CYOA game if you have not finished it yet
  • If you have not completed your CYOA game evaluations, then you may do so during this time. Once you are done evaluating other games, then turn in your game evaluation sheet to the substitute.
  • Complete the Python Word Search AND the Python Crossword Puzzle. Turn them in to the substitute when you finished. They will be counted for a grade. If you have trouble with the crossword puzzle, then use the "How To Think Like A Computer Scientist" book as a reference.
  • If you have completed the CYOA evaluation, the word search, and the crossword puzzle, then continue reading Ch 6: Iteration of HTTLACS
  • After reading and working through Ch6, complete the exercises found at the end of Ch 6

Due: CYOA evaluation sheet due!

Due: Python Word Search & Crossword due!

Due: Chapter 6 Exercises due next week!


Wednesday (12/5) - Thursday (12/6)

Agenda:

  • If you have not finished your game, then you may either use today to finish it for late points OR you may evaluate other peoples' games. You must still turn in a game evaluation sheet even if you use today to work on your game
  • CYOA Speed-Dating Gaming!
    • Put your name on a post-it note and place it on your computer
    • Pick up the evaluation sheets from Mr. Bui (2 sheets).
    • Open a linux terminal (Applications -> Accessories -> Terminal)
    • Change directory (cd) to the location of your CYOA game
    • WRITE DOWN THE LOCATION/PATH AND FILENAME OF YOUR GAME AT THE TOP OF YOUR EVALUATION SHEET (Example: /home/pbui/adventure.py ). You may also obtain the path by running the pwd command when you are in the same directory as your CYOA game
    • Set up the game for them to play by typing into the console: python FILENAME
    • Read the directions on the evaluation sheet
    • You will have about 5-6 minutes to evaluate each game
    • Rotate around when you hear the gong
    • Turn in your completed evaluation sheets at the end of class

Due: CYOA evaluation sheet due by the end of class today


Monday (12/3) - Tuesday (12/4)

Warmup: What does the following code produce?

x = 10
y = 20
z = x * y

if y > 50 or z < 500:
	print "Computer science r0x0rs!"
elif x == 10 and y < 50:
	print "r0x0rs my s0x0rs!"
else:
	print "hello, world!"
			

Agenda:

  • Vote here for W-L!
  • Choose Your Own Adventure! (CYOA)
    • Using text editor OR any other word processor, begin writing out and designing a choose your own adventure game. You do not need to worry about any code yet. Just write out the different stages of your game, each of the options, and where each of the options leads to.
    • PLEASE design your game so that it is appropriate for school
    • Design your game such that it has at least 3 options per stage, and your game must go at least 5 stages deep. You may end certain paths of stages early (i.e. each option does not need to always go on to another set of stages)
    • When your design is complete, begin programming (coding) your game in python
  • Informal game beta testing!
    • When your game is complete and ready for testing, put your name on Mr. Bui's clipboard and find somebody else's name on the clipboard to test out their game
    • You should tell the developer if you run into any problems with their game

Due: CYOA due by the end of class today


Friday (11/30)

Warmup: What does the following code produce?

def crazyFunction(x):
  return x + 2

print crazyFunction( crazyFunction( crazyFunction( 3 )))


HINT: Remember order of operations!

Agenda:

  • Choose Your Own Adventure! (CYOA)
    • Using text editor OR any other word processor, begin writing out and designing a choose your own adventure game. You do not need to worry about any code yet. Just write out the different stages of your game, each of the options, and where each of the options leads to.
    • PLEASE design your game so that it is appropriate for school
    • Design your game such that it has at least 3 options per stage, and your game must go at least 5 stages deep. You may end certain paths of stages early (i.e. each option does not need to always go on to another set of stages)
    • When your design is complete, begin programming (coding) your game in python

Due: CYOA due by the end of class today or Monday (12/3)


Wednesday (11/28) - Thursday (11/29)

Warmup: What does the following code produce?

x = 5
y = 2
z = x - y
if z > y:
  print "Go Generals!"
else:
  print "Who are the Generals!?"

Agenda:

  • Demo your MathFun.py to Mr. Bui. It was due yesterday!
  • Choose Your Own Adventure! (CYOA)
    • Using text editor OR any other word processor, begin writing out and designing a choose your own adventure game. You do not need to worry about any code yet. Just write out the different stages of your game, each of the options, and where each of the options leads to.
    • PLEASE design your game so that it is appropriate for school
    • Design your game such that it has at least 3 options per stage, and your game must go at least 5 stages deep. You may end certain paths of stages early (i.e. each option does not need to always go on to another set of stages)
    • When your design is complete, begin programming (coding) your game in python

Due: CYOA due by the end of class Friday (11/30)


Monday (11/26) - Tuesday (11/27)

Warmup:

  • Create a new script called buiAdventure.py
  • Print out the following message: "You wake up to the sound of your alarm..."
  • Print out several options for the user:

    (t)hrow alarm across the room
    (h)it the snooze
    (g)et up and head to the shower

  • Use raw_input() to prompt/ask the user what they would like to do (you will need to store the input into a variable)
  • Using if statements, check what the user inputs and print out the next stage of the adventure pending on what they inputted.
  • If the user inputs an incorrect option, then you should print out "Invalid choice!"
  • For each of the options, you should print out another set of options, and you have the beginning to your own "Choose Your Own Adventure" Game!

Agenda:

  • Complete and turn in Chapter 5 exercises if you have not already done so. They were due last week!
  • How to make a menu system:
    • Create a new script called mathFun.py
    • Copy your completed Chapter 5 math function defintions and put them at the top of the script
    • Print out a message that lists your math functions from Chapter 5 with options:

      Welcome to the Math Fun Menu!
      Calculate...
      (h)ypotenuse
      (s)lope
      (i)ntercept
      (f)actor
      (m)ultiple
      f(a)hrenheit to celsius
      (c)elsius to fahrenheit

      What would you like to do? (Please choose an option from the above and press Enter...)


    • Prompt the user for input and save it into a variable
    • Using if statements, check what the user inputted and prompt the user for the required parameters for the associated function. After you have the parameters, call the function and print out the returned result.
    • If the user inputs an incorrect option, then you should print out "Invalid choice!"
    • Hint: You did all of this in Chapter 4...
    • Once you have completed the menu system, then demo it to Mr. Bui
  • Choose Your Own Adventure!
    • Using text editor OR any other word processor, begin writing out and designing a choose your own adventure game. You do not need to worry about any code yet. Just write out the different stages of your game, each of the options, and where each of the options leads to.
    • PLEASE design your game so that it is appropriate for school
    • Design your game such that it has at least 3 options per stage, and your game must go at least 5 stages deep. You may end certain paths of stages early (i.e. each option does not need to always go on to another set of stages)

Due: mathFun.py due by the end of class today (11/26) or tomorrow (11/27).


Monday (11/19) - Tuesday (11/20)

Agenda:

  • Complete and turn in Chapter 5 exercises if you have not already done so. They were due last week!
  • How to make a menu system:
    • Create a new script called mathFun.py
    • Copy your completed Chapter 5 math function defintions and put them at the top of the script
    • Print out a message that lists your math functions from Chapter 5 with options:

      Welcome to the Math Fun Menu!
      Calculate...
      (h)ypotenuse
      (s)lope
      (i)ntercept
      (f)actor
      (m)ultiple
      f(a)hrenheit to celsius
      (c)elsius to fahrenheit

      What would you like to do? (Please choose an option from the above and press Enter...)


    • Prompt the user for input and save it into a variable
    • Using if statements, check what the user inputted and prompt the user for the required parameters for the associated function. After you have the parameters, call the function and print out the returned result.
    • If the user inputs an incorrect option, then you should print out "Invalid choice!"
    • Hint: You did all of this in Chapter 4...
    • Once you have completed the menu system, then demo it to Mr. Bui
  • A more interesting menu system...
    • Create a new script called buiAdventure.py
    • Print out the following message: "You wake up to the sound of your alarm..."
    • Print out several options for the user:

      (t)hrow alarm across the room
      (h)it the snooze
      (g)et up and head to the shower

    • Use raw_input() to ask the user what they would like to do
    • Using if statements, check what the user inputs and print out the next stage of the adventure pending on what they inputted.
    • If the user inputs an incorrect option, then you should print out "Invalid choice!"
    • For each of the options, you should print out another set of options, and you have the beginning to your own "Choose Your Own Adventure" Game!
  • Choose Your Own Adventure!
    • Using text editor OR any other word processor, begin writing out and designing a choose your own adventure game. You do not need to worry about any code yet. Just write out the different stages of your game, each of the options, and where each of the options leads to.
    • PLEASE design your game so that it is appropriate for school
    • Design your game such that it has at least 3 options per stage, and your game must go at least 5 stages deep. You may end certain paths of stages early (i.e. each option does not need to always go on to another set of stages)


Thursday (11/15) - Friday (11/16)

Agenda:

  • IT Job Shadow Day Announcement - Smithsonian
  • Work on Chapter 5. Read and work through all of Chapter 5.
  • Please pay attention to the following topics in Ch.5:
    • Return values
    • Program development
    • Boolean functions
    • Programming with style
    • UNIT TESTING WITH DOCTEST!

Due: HTTLACS: Ch5 exercises will be due by the end of class today (11/15) or tomorrow (11/16).


Tuesday (11/13) - Wednesday (11/14)

Agenda:

  • You should now work on Chapter 4 Exercise #8, Mr. Bui will be collecting it in the future. You should spend this time playing with gasp by completing the exercise and its questions. When you have completed the exercise, demo your gasp house to Mr. Bui
  • You should then work on the following practice problems:
    • Define a function named getDistance(x1, y1, x2, y2) that returns the distance between two points. Be sure to use the new keyword return
    • If you have not already done so, add a prompt for the coordinates x1, y1, x2, and y2. You should then send those arguments into your getDistance() function. Run your program and test it out
    • Using gasp, draw a W and L on the canvas
  • Once you have completed Chapter 4 and the practice problems, continue on to Chapter 5. Read and work through all of Chapter 5.

Due: HTTLACS: Ch5 exercises will be due by the end of class Thursday (11/15) or Friday (11/16).


Friday (11/9)

Agenda:

  • You may check your grades on-line. If you have any questions, please come talk to Mr. Bui *after* class
  • You should now work on Chapter 4 Exercise #8, Mr. Bui will be collecting it in the future. You should spend this time playing with gasp by completing the exercise and its questions. When you have completed the exercise, demo your gasp house to Mr. Bui
  • You should then work on the following practice problems:
    • Define a function named getDistance(x1, y1, x2, y2) that returns the distance between two points. Be sure to use the new keyword return
    • If you have not already done so, add a prompt for the coordinates x1, y1, x2, and y2. You should then send those arguments into your getDistance() function. Run your program and test it out
    • Using gasp, draw a W and L on the canvas
  • Once you have completed Chapter 4 and the practice problems, continue on to Chapter 5. Read and work through all of Chapter 5.

Due: HTTLACS: Ch5 exercises will be due next week.


Wednesday (11/7) - Thursday (11/8)

Agenda:

  • You may check your grades on-line. If you have any questions, please come talk to Mr. Bui *after* class
  • Read and work through the rest of Chapter 4 - Sections 4.8 - 4.11).
  • Complete the rest of the Chapter 4 exercises through #7, so. When you have completed the Chapter 4 exercises (#1-7), then turn it in to Mr. Bui
  • You should now work on Chapter 4 Exercise #8, Mr. Bui will be collecting it in the future. You should spend this time playing with gasp by completing the exercise and its questions. When you have completed the exercise, demo your gasp house to Mr. Bui
  • You should then work on the following practice problems:
    • Define a function named getDistance(x1, y1, x2, y2) that returns the distance between two points. Be sure to use the new keyword return
    • If you have not already done so, add a prompt for the coordinates x1, y1, x2, and y2. You should then send those arguments into your getDistance() function. Run your program and test it out
    • Using gasp, draw a W and L on the canvas
  • Once you have completed Chapter 4 and the practice problems, continue on to Chapter 5. Read and work through all of Chapter 5.

Due: HTTLACS: Ch4 exercises due by the end of today


Monday (11/5)

Warmup:

  • Create a new python script named warmup_11_5.py
  • Ask the user to input a number. You should save this in a variable
  • Check if the number is less than 100, and if it is, print a message saying that the number is less than 100
  • If the number is not less than 100, then print a message saying that the number is NOT less than 100

Agenda:

  • Mr. Bui will tell you if you are missing any assignments. Please turn them in today!
  • Read and work through the rest of Chapter 4 - Sections 4.8 - 4.11).
  • Complete the rest of the Chapter 4 exercises. When you have completed all the Chapter 4 exercises, then turn it in to Mr. Bui
  • You should then work on the following practice problems:
    • Define a function named getDistance(x1, y1, x2, y2) that returns the distance between two points. Be sure to use the new keyword return
    • If you have not already done so, add a prompt for the coordinates x1, y1, x2, and y2. You should then send those arguments into your getDistance() function. Run your program and test it out
    • Using gasp, draw a W and L on the canvas

Due: HTTLACS: Ch4 exercises due by the end of today


Wednesday (10/31) - Thursday (11/1)

Warmup:

  • Define a function named multTheseTwo(x, y) that takes two parameters: x and y
  • Have your function print out the product of x and y
  • Test your function using a function call and show Mr. Bui

Agenda:

  • Chapter 4 - Conditionals Overview (4.1 - 4.7)
  • Work on #1-4 of the Chapter 4 exercises
  • When you have finished exercises 1-4, go on to reading the rest of Chapter 4
  • Chapter 4 - Other cool things (4.8 - 4.11)
    • Define a function named getDistance(x1, y1, x2, y2) that returns the distance between two points. Be sure to use the new keyword return
    • If you have not already done so, add a prompt for the coordinates x1, y1, x2, and y2. You should then send those arguments into your getDistance() function. Run your program and test it out
    • Using gasp, draw a W and L on the canvas
  • Complete #4-8 of the Chapter 4 exercises
  • When done, print out your answers to the CHapter 4 exercises and hand it in to Mr. Bui


Monday (10/29) - Tuesday (10/30)

Warmup:

  1. Create a python script named input_warmup.py
  2. Ask the user to input a word, which you should then store into a variable named s. HINT: madlib.py
  3. Ask the user to input a number, which you should then store into a variable named num. HINT: This is going to be different from asking for a string
  4. Print out the string s, num times. HINT: #4 of Chapter 3 exercises

Agenda:

  • Period 3 - Turn in your Chapter 1 exercises
  • Be sure that if you were absent last Thursday/Friday, then you should turn in your Chapter 3 exercises
  • Create a function named addThreeNums(x, y, z) that prints out the sum of x, y, and z. Be sure to test out your function.
  • Create a function named getDistance(x1, y1, x2, y2) that prints out the distance between two points (x1, y1) and (x2, y2)
  • Create a function named midPoint(x1, y1, x2, y2) that prints out the midpoint between two points (x1, y1) and (x2, y2)
  • Chapter 4 Overview


Thursday (10/25) - Friday (10/26)

Agenda:

  • Go through Chapter 3 completely. Read through and complete the Ch 3 exercises of HTTLACS
  • Create a function named addThreeNums(x, y, z) that prints out the sum of x, y, and z. Be sure to test out your function.
  • Create a function named getDistance(x1, y1, x2, y2) that prints out the distance between two points (x1, y1) and (x2, y2)
  • Create a function named midPoint(x1, y1, x2, y2) that prints out the midpoint between two points (x1, y1) and (x2, y2)
  • Once you are done with Chapter 3, go on to Chapter 4

Due: HTTLACS: Ch3 exercises due by the end of today or tomorrow


Tuesday (10/23) - Wednesday (10/24)

Warmup:

On a sheet of paper or on the computer, do the following:
  • Create a math function called f(x) that takes x, multiplies it by 3, and adds 2
  • What does the function give you back when you have f(1)? f(5)? f(8)?

Agenda:

  • Complete Chapter 2 exercises and turn them in if you have not already done so
  • Math function review
  • Guido define review
  • Python Functions Overview
  • Go through Chapter 3 completely. Read through and complete the Ch 3 exercises of HTTLACS

Due: HTTLACS: Ch3 exercises due by the end of Thursday / Friday


Wednesday (10/17) - Monday (10/22)

Agenda:

  • More python!
  • Continue on to Chapter 2. Read through and complete the Ch 2 exercises of HTTLACS

Due: HTTLACS: Ch2 exercises due by the end of today


Monday (10/15) - Tuesday (10/16)

Agenda:

  • Demo to Mr. Bui tree and the files and subdirectories you created
  • Introduction to Python!
    • Shell mode vs. Script mode
    • Dr. Python
  • Read through and complete the Chapter 1 exercises of "How To Think Like A Computer Scientist" (HTTLACS)
  • When you have finished Chapter 1, continue on to Chapter 2. Read through and complete the Ch 2 exercises of HTTLACS

Due: HTTLACS: Ch1 exercises due by the end of today

Due: HTTLACS: Ch2 exercises due by the end of Wednesday/Thursday


Thursday (10/11) - Friday (10/12)

Agenda:

  • Unix command review
  • Work on the Introduction to Unix
  • Continue on in the Introduction to Unix by working through the tree tutorial
  • You should then go through the "Unix Evaluation" and create the files and directories that it asks you to create
  • Demo to Mr. Bui tree and the files and subdirectories you created
  • If you are done with the "Unix Evaluation," then you should try creating several (5) of your own evaluations, similar to the ones that Mr. Bui gave you
  • You should then begin reading and working through Chapter 1 of "How To Think Like A Computer Scientist"
  • We will begin going over Python in the second half of class


Tuesday (10/9) - Wednesday (10/10)

Agenda:

  • Work on the Introduction to Unix
  • Turn in your command descriptions and examples today and/or tomorrow
  • Continue on in the Introduction to Unix by working through the tree tutorial
  • You should then go through the "Unix Evaluation" and create the files and directories that it asks you to create
  • If you are done with the "Unix Evaluation," then you should try creating several (5) of your own evaluations, similar to the ones that Mr. Bui gave you

Unix command descriptions and examples are due today and tomorrow

tree and Unix evaluations will be checked on Thursday (10/11) and Friday (10/12)


Wednesday (10/3) - Thursday (10/4)

Warmup:

  • Think about the first computer you ever used...which operating system did it run? What was the user interface? (e.g. graphical? textual?)
  • Look on-line and determine the date that your operating system was released

Agenda:

  • Mr. Bui is checking GvR steps today! Each person will receive three random numbers. Those are the steps that you must show for credit.
  • If you are completely done with Guido, you should continue on by working on the Introduction to Unix
  • Turn in a hard-copy of your linux commands and descriptions
  • Complete the Introduction to Unix Evaluation. These will be checked next week!
  • Done with linux/unix commands? Talk to Mr. Bui

Unix command descriptions and examples are due next Tuesday (10/9) or Wednesday (10/10) pending on your block


Tuesday (10/2)

Agenda:

  • You should continue working on your GvR steps (lessons). I will be checking tomorrow for completion of random steps!
  • If you are completely done with Guido, you should continue on by working on the Introduction to Unix
  • Done with linux/unix commands? Talk to Mr. Bui


Friday (9/28) - Monday (10/1)

Agenda:

  • Take Quiz 2!
  • You should continue working on your GvR steps (lessons).
  • If you are completely done with Guido, you should continue on by working on the Introduction to Unix


Wednesday (9/26) - Thursday (9/27)

Agenda:

  • Turn in your signed syllabus if you have not already!
  • You should continue working on your GvR steps (lessons).
  • We will have a quiz on steps 10, 11, and 12 tomorrow (or Monday)
  • If you are completely done with Guido, you should continue on by working on the Introduction to Unix

GvR quiz tomorrow or Monday (10/1) pending on your block


Friday (9/21) - Tuesday (9/25)

Agenda:

  • If you have not done so, take the GvR quiz, which is 2 parts. Open-computer, open-note, but CLOSED-PERSON.
  • Quiz 1: Part 1
  • Quiz 1: Part 2
  • When done with the quiz, you should continue working on your GvR steps (lessons).
  • We will have a quiz on steps 10, 11, and 12 on Friday (or Monday)
  • If you are completely done with Guido, you should continue on by working on the Introduction to Unix

GvR quiz on Friday (9/28) or Monday (10/1) pending on your block


Wednesday (9/19) - Thursday (9/20)

Agenda:

  • GvR goal for today: finish through Step 9
  • GvR quiz review
    • Basic instructions
    • User-generated (custom) instructions
    • if statement
    • do statement
  • If you are completely done with Guido, you should continue on by working on the Introduction to Unix

GvR quiz on Friday (6/21) or Monday (6/24) pending on your block


Monday (9/17) - Tuesday (9/18)

Agenda:

  • Begin using new lab configuration
  • GvR progress update
  • GvR quiz on Friday! (We will review on Wednesday/Thursday)

GvR quiz on Friday (6/21) or Monday (6/24) pending on your block


Thursday (9/13) - Friday (9/14)

Agenda:

  • Mr. Bui will go around checking your progress in GvR (which step are you on?)
  • Be prepared to answer/explain the following (depending on the step that you are on):
    • What are the commands/instructions that Guido understands? (Step 2)
    • How do you create your own command? Why would you do this? (Step 5)
    • How does the if-statement work? (Step 8)
    • How is the do-statement useful? (Step 9)


Tuesday (9/11) - Wednesday (9/12)

Agenda:

  • Your goal for GvR should be to reach Steps 8, 9, or 10 by the end of today.


Friday (9/7) - Monday (9/10)

Agenda:

  • Making a PB&J sandwich
  • Introduction to Guido van Robot
  • Work through Step 1 of GvR as a class
  • Use the rest of today to mess around with GvR and go through as many GvR steps (lessons) as you can.

Due: Signed syllabus by today (9/7) or Monday (9/10)


Wednesday (9/5) - Thursday (9/6)

Agenda:

  • Finish going over syllabus
  • Other logistical items
    • 20-10 no pass policy
    • Sign out sheet
  • Name cards
  • Complete the following survey
  • Share.
  • What is computer science?
    1. Pair up
    2. Take out a sheet of paper
    3. Put both of your names in the top right of the page
    4. a) List 5 things that use computers
    5. b) List 5 things you have done in any science class
    6. c) 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?
  • Share sandwich stories
  • What does it mean when we say "to program a robot to do something?"

Due: Signed syllabus by Friday (9/7)


Tuesday (9/4/07)

Agenda:

  • Introductions
  • Go over syllabus
  • Questions?

Due: Signed syllabus by Friday (9/7)