|
|
(606 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | == Monday - Tuesday (3/26/12 - 3/27/12) ==
| |
− | '''Period 1 - Agenda:'''
| |
− | * Iteration (looping) review
| |
− | * Looping practice
| |
− | ** Print out all the numbers from 0-50
| |
− | ** Print out all the numbers from 75 down to 25
| |
− | ** Write a loop that prints out the first 100 even numbers
| |
− | ** Prompt the user for a number and store it in a variable n, then print out the first n odd numbers (starting at 1) using a loop
| |
− | ** Print out all the numbers that are divisible by 6 from 0 through 100
| |
− | * [[Print Shapes Exercises]]
| |
− | * Make sure you have at least 6 exercises completed from [http://codingbat.com/python/Logic-1 Python > Logic-1]
| |
− |
| |
− | '''Period 3 - Agenda:'''
| |
− | * 3rd Quarter Exam
| |
− |
| |
− | == Friday (3/23/12) ==
| |
− | '''Period 1 - Agenda:'''
| |
− | * 3rd Quarter Exam
| |
− |
| |
− | '''Period 3 - Agenda:'''
| |
− | '''Period 3 - Agenda:'''
| |
− | * Complete the [[Looping Exercises]]
| |
− | * Study for 3rd Quarter Exam
| |
− |
| |
− | == Wednesday - Thursday (3/21/12 - 3/22/12) ==
| |
− | * 3rd Quarter Exam Review
| |
− | ** 1st Period Exam - Friday (3/23/12)
| |
− | ** 3rd Period Exam - Tue/Wed (3/27-28/12)
| |
− | ** values, types, variables
| |
− | ** math operations
| |
− | ** logical and comparison operations
| |
− | ** syntax errors
| |
− | ** functions
| |
− | ** if-statements (CodingBat Logic-1)
| |
− | ** while loops (3rd Period only)
| |
− |
| |
− | '''Period 1 - Agenda:'''
| |
− | * Complete 4 or more from [http://codingbat.com/python/Logic-1 Python > Logic-1]
| |
− | * Challenge: Complete ALL of [http://codingbat.com/python/Logic-1 Python > Logic-1]
| |
− |
| |
− | '''Period 3 - Agenda:'''
| |
− | * Complete the [[Looping Exercises]]
| |
− |
| |
− | == Monday - Tuesday (3/19/12 - 3/20/12) ==
| |
− | '''Warmup:'''
| |
− | * Complete [http://codingbat.com/prob/p124984 Python > Warmup-1 > makes10]
| |
− |
| |
− | '''Period 1 - Agenda:'''
| |
− | * Demo [[Guessing Game Assignment]]
| |
− |
| |
− | '''Period 3 - Agenda:'''
| |
− | * Complete the [[Print Shapes Exercises]]
| |
− | * Complete the [[Looping Exercises]]
| |
− |
| |
− | == Thursday (3/15/12) ==
| |
− | '''Warmup:'''
| |
− | * Complete [http://codingbat.com/prob/p166884 Python > Warmup-1 > parrot_trouble]
| |
− |
| |
− | '''Period 1 - Agenda:'''
| |
− | * Demo Fast Food Nutritional Menu
| |
− | * Complete [http://codingbat.com/prob/p135815 Python > Logic-1 > squirrel_play]
| |
− | * Complete [http://codingbat.com/prob/p137202 Python > Logic-1 > caught_speeding]
| |
− | * Introduction to Iteration (looping)
| |
− | ** while loops
| |
− | ** loop conditions
| |
− | * [[Guessing Game Assignment]]
| |
− |
| |
− | '''Period 3 - Agenda:'''
| |
− | * Looping practice
| |
− | ** Print out all the numbers from 0-50
| |
− | ** Print out all the numbers from 75 down to 25
| |
− | ** Write a loop that prints out the first 100 even numbers
| |
− | ** Prompt the user for a number and store it in a variable n, then print out the first n odd numbers (starting at 1) using a loop
| |
− | ** Print out all the numbers that are divisible by 6 from 0 through 100
| |
− | * [[Print Shapes Exercises]]
| |
− |
| |
− | == Wednesday (3/14/12) ==
| |
− | '''Warmup:'''
| |
− | * Complete [http://codingbat.com/prob/p166884 Python > Warmup-1 > parrot_trouble]
| |
− |
| |
− | '''Agenda:'''
| |
− | * Complete 4 or more from [http://codingbat.com/python/Logic-1 Python > Logic-1]
| |
− | * Challenge: Complete ALL of [http://codingbat.com/python/Logic-1 Python > Logic-1]
| |
− |
| |
− | == Monday - Tuesday (3/12/12 - 3/13/12) ==
| |
− | '''Warmup:'''
| |
− | * Complete [http://codingbat.com/prob/p197466 Python > Warmup-1 > diff21 ]
| |
− |
| |
− | '''Agenda:'''
| |
− | * Complete [http://codingbat.com/prob/p195669 Python > Logic-1 > cigar_party]
| |
− | * Complete [http://codingbat.com/prob/p129125 Python > Logic-1 > date_fashion]
| |
− | * Demo Fast Food Nutritional Menu
| |
− | * Looping review
| |
− | * [[Guessing Game Assignment]]
| |
− | * Complete 4 exercises from [http://codingbat.com/python/Logic-1 Python > Logic-1]
| |
− |
| |
− | == Thursday - Friday (3/8/12 - 3/9/12) ==
| |
− | * [[Guessing Game Assignment]]
| |
− | * CodingBat
| |
− | *# Go to [http://www.codingbat.com CodingBat]
| |
− | *# Click on '''create account'''
| |
− | *# Make sure you put in your Lastname, Firstname
| |
− | *# Click on '''prefs'''
| |
− | *# Under Teacher Share, use [[Image:BuiEmail.bmp]]
| |
− | * Complete 3 exercises from [http://codingbat.com/python/Warmup-1 Python->Warmup-1]
| |
− |
| |
− | == Tuesday - Wednesday (3/6/12 - 3/7/12) ==
| |
− | * Review old school menu systems
| |
− | * Demo Fast Food Nutritional Menu
| |
− | *# Print out a menu of at least 5 different fast food items (your choice)
| |
− | *# Prompt the user to choose one of the choices
| |
− | *# Use if statements to see what they ordered, and then print out the number of calories in that specific food item
| |
− | *#* [http://www.fiveguys.com/media/1960/nutritionalinfo_2010.pdf Five Guys Nutritional Info]
| |
− | *#* [http://nutrition.mcdonalds.com/getnutrition/nutritionfacts.pdf McDonald's Nutritional Info]
| |
− | *#* [http://www.tacobell.com/nutrition/information Taco Bell Nutritional Info]
| |
− |
| |
− | * Introduction to Iteration (looping)
| |
− | ** while loops
| |
− | ** loop conditions
| |
− | * [[Guessing Game Assignment]]
| |
− |
| |
− | == Friday - Monday (3/2/12 - 3/5/12) ==
| |
− | '''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:'''
| |
− | * Demo [[MPAA calculator assignment]]
| |
− | * Old school menu systems
| |
− | *# Print out the menu on multiple lines
| |
− | *# Prompt the user for an option
| |
− | *# Use if statements to check the input and do different things for different options
| |
− |
| |
− | * Fast Food Nutritional Menu
| |
− | *# Print out a menu of at least 5 different fast food items (your choice)
| |
− | *# Prompt the user to choose one of the choices
| |
− | *# Use if statements to see what they ordered, and then print out the number of calories in that specific food item
| |
− | *#* [http://www.fiveguys.com/media/1960/nutritionalinfo_2010.pdf Five Guys Nutritional Info]
| |
− | *#* [http://nutrition.mcdonalds.com/getnutrition/nutritionfacts.pdf McDonald's Nutritional Info]
| |
− | *#* [http://www.tacobell.com/nutrition/information Taco Bell Nutritional Info]
| |
− |
| |
− | == Thursday (3/1/12) ==
| |
− | '''Warmup:'''
| |
− | * Put your name on your syntax checklist
| |
− | * Print it out
| |
− |
| |
− | '''Agenda:'''
| |
− | * Syntax checking activity
| |
− | ** No computers, only your checklist
| |
− | ** Identify all the syntax errors (there are 10)
| |
− |
| |
− | <syntaxhighlight lang="Python">
| |
− | from turtle import *
| |
− |
| |
− | def printSum(x, y)
| |
− | z == x + y
| |
− | print(z)
| |
− |
| |
− | defe print Diff(x, y):
| |
− | z = x - yy
| |
− | print(d)
| |
− |
| |
− | 1variable = 1
| |
− | a = 4
| |
− | b = 2
| |
− | c = (ab)*3
| |
− | temp! = 5
| |
− | printsum(4, 6)
| |
− | thisVariableHas5 = 5
| |
− | forward(45
| |
− | backward(thisVariableHas5)
| |
− | exitonclick()
| |
− | </syntaxhighlight>
| |
− |
| |
− | * [[Media:BooleanLogic.ppt]]
| |
− | * [[Logical operators assignment]]
| |
− | * [[MPAA calculator assignment]]
| |
− |
| |
− | == Wednesday (2/29/12) ==
| |
− | '''Agenda:'''
| |
− | * [[Media:BooleanLogic.ppt]]
| |
− | * [[Logical operators assignment]]
| |
− | * [[MPAA calculator assignment]]
| |
− |
| |
− | == Monday - Tuesday (2/27/12 - 2/28/12) ==
| |
− | '''Warmup:'''
| |
− | # Open up MS Word or any other text editor
| |
− | # With a partner, create a checklist of things to look for when you are checking your program's syntax
| |
− | #* Example: Check for spelling mistakes
| |
− |
| |
− | '''Agenda:'''
| |
− | * Demo College Admissions Exercise
| |
− | * [[Comparison operators assignment]]
| |
− | * [[Media:BooleanLogic.ppt]]
| |
− | * [[Logical operators assignment]]
| |
− | * [[MPAA calculator assignment]]
| |
− |
| |
− | == Wednesday - Friday (2/22/12 - 2/24/12) ==
| |
− | '''Warmup:'''
| |
− | # Write a program that prompts the user for his/her name
| |
− | # Prompt the user for the his/her age
| |
− | # Print out a message that says, "NAME is AGE years old" (using the inputted name and age)
| |
− |
| |
− | '''Agenda:'''
| |
− | * [[Media:PythonInputOutput.ppt]]
| |
− | * Complete and demo [[Quadratic Formula Assignment]]
| |
− | * Introduction to Conditionals
| |
− | ** Comparison operators (<, >, <=, >=, ==, !=)
| |
− | ** Boolean values: True, False
| |
− | ** if statement
| |
− | ** if-else statement
| |
− | ** nested if statements
| |
− | * College Admissions Exercise
| |
− | *# Research a random college admission's median GPA and SAT
| |
− | *# Prompt the user for his/her GPA
| |
− | *# Prompt the user for his/her SAT
| |
− | *# Using if-statements, print out whether or not the user meets the median requirements for that college
| |
− |
| |
− | == Thursday - Tuesday (2/16/12 - 2/21/12) ==
| |
− | '''Warmup:'''
| |
− | # Write a program that has 2 variables: '''base''' and '''height'''
| |
− | # Give the variables some values
| |
− | # Calculate the area of a triangle and print it out
| |
− |
| |
− | '''Agenda:'''
| |
− | * Input and Output
| |
− | ** [[Media:PythonInputOutput.ppt]]
| |
− | ** Go back and change your programs so that they accept input
| |
− | * [[Quadratic Formula Assignment]]
| |
− |
| |
− | == Wednesday - Thursday (2/15/12 ) ==
| |
− | '''Warmup:'''
| |
− | * Identify the invalid variable names:
| |
− | ** computer
| |
− | ** COMPUTER
| |
− | ** computer science
| |
− | ** computer_science
| |
− | ** 1computer
| |
− | ** cOmPuTeR867
| |
− |
| |
− | '''Agenda:'''
| |
− | * Review Introduction to Values, Types, and Variables
| |
− | ** [[Media:ValuesTypesVariables.ppt]]
| |
− | ** Go over [[Values, Types, and Variables Identification assignment]]
| |
− | * Math operations in Python
| |
− |
| |
− | * Slope calculator program
| |
− | *# Create 4 variables named '''x1, y1, x2, y2''' and give them some values
| |
− | *# Calculate the slope using those variables and store it in a variable named '''m'''
| |
− | *#* HINT: If you can't remember the formula for something, look it up
| |
− | *# Print out the slope
| |
− |
| |
− | * Circle calculator program
| |
− | *# Create a variable named '''radius''' and give it a test value
| |
− | *# Create a variable named '''PI''' and give it the value of pi (you decide how many digits)
| |
− | *# Calculate and print out the circumference of the circle. Make sure your output looks like: "Circumference: ###"
| |
− | *# Calculate and print out the area of the circle. Make sure your output looks like: "Area: ###"
| |
− |
| |
− | == Monday - Tuesday (2/13/12 - 2/14/12) ==
| |
− | '''Warmup:'''
| |
− | * Define a function named '''stickPerson()'''
| |
− | * Make it draw a stick person on the screen
| |
− |
| |
− | '''Agenda:'''
| |
− | * Introduction to Function Parameters
| |
− | * 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>
| |
− |
| |
− | * Introduction to Values, Types, and Variables
| |
− | ** [[Media:ValuesTypesVariables.ppt]]
| |
− | * Complete [[Values, Types, and Variables Identification assignment]]
| |
− |
| |
− | == Wednesday - Friday (2/8/12 - 2/10/12) ==
| |
− | '''Agenda:'''
| |
− | * Introduction to Functions
| |
− | ** Function definition
| |
− | ** Function header
| |
− | ** Function body
| |
− | ** Function call
| |
− | * Complete the [[Turtle - House Function Assignment]]
| |
− | * Function parameters
| |
− | ** Defining and calling a function with one parameter
| |
− | ** Defining and calling a function with more than one parameter
| |
− |
| |
− | == Monday - Tuesday (2/6/12 - 2/7/12) ==
| |
− | '''Agenda:'''
| |
− | * More Python Turtle Commands
| |
− | ** exitonclick() reminder
| |
− | ** home()
| |
− | ** goto()
| |
− | ** circle()
| |
− | ** dot()
| |
− | * More Turtle practice. Demo the following:
| |
− | *# 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
| |
− |
| |
− | == Wednesday - Friday (2/1/12 - 2/3/12) ==
| |
− | * How to submit to [http://stemchallenge.org/ STEM Challenge]
| |
− | * [[Media:BasicProgrammingTerms.ppt]]
| |
− | * Course Request Forms (CRFs)
| |
− | ** IB Computer Science: Part 1 (36570)
| |
− | ** IB Information Technology in the Global Society (36613)
| |
− | * Introduction to Python Turtle
| |
− | ** [http://docs.python.org/py3k/library/turtle.html Python turtle library]
| |
− | ** Complete [[Turtle - 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
| |
− |
| |
| == Archives == | | == Archives == |
− | * [[CS1 - 1112 - January]] | + | * CS1 - 1819 (Poland) - APS Canvas |
− | * [[CS1 - 1112 - December]] | + | * CS1 - 1718 (Poland) - APS Canvas |
− | * [[CS1 - 1112 - November]] | + | * CS1 - 1617 (Poland) - Google Classroom |
− | * [[CS1 - 1112 - October]] | + | ** [https://docs.google.com/a/apsva.us/document/d/1VnXYBgVIABKBGVYNuoQQ6E_6kUzcNah2TFlM5QgTOW0/edit?usp=sharing 2017 Syllabus] |
− | * [[CS1 - 1112 - September]] | + | * [https://sites.google.com/a/apsva.us/ocopcompsci/ CS1 - 1516 (MacLeod)] |
| + | * [[CS1 - 1415]] |
| + | * [[CS1 - 1314]] |
| + | * [[CS1 - 1213]] |
| + | * [[CS1 - 1112]] |
| + | * [[CS1 - 1011]] |
| + | * [[CS1 - 0910]] |
| + | * [[CS1 - 0809]] |
| + | * [http://www.paulbui.net/wl0708/cs1 CS1 - 0708] |
| + | * [http://www.paulbui.net/wl0607/cs1/schedule.html CS1 - 0607] |