|
|
(374 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | == Friday (3/1/13) ==
| |
− | '''Warmup:'''
| |
− | * Without using a computer, identify the syntax errors in the following code
| |
− |
| |
− | <syntaxhighlight lang="Python">
| |
− | username = input(Username: )
| |
− | password = input("Password: "
| |
− | if username = "admin":
| |
− | if password == "secret"
| |
− | print(Logged in successfully!"
| |
− | else:
| |
− | pint("Incorrect password!")
| |
− | else
| |
− | print("Incorrect username!")
| |
− | </syntaxhighlight>
| |
− |
| |
− | '''Agenda:'''
| |
− | * if-statements
| |
− | * if-else statement
| |
− | * Username/Password example
| |
− | * [[Media:BooleanLogic.ppt]]
| |
− | * [[Logical operators assignment]]
| |
− | * [[Python Boolean Exercises]]
| |
− |
| |
− | == Wednesday (2/27/13) ==
| |
− | '''Warmup:'''
| |
− | # If you have not completed the [[Quadratic Formula Assignment]], then work on it right now
| |
− | # If you have completed the [[Quadratic Formula Assignment]], then save a copy of it called '''broken_quad.py'''
| |
− | # We will be going through and purposefully breaking '''broken_quad.py'''
| |
− | # Make sure you still have your original quadratic formula program that is not broken. (so you don't lose it)
| |
− | # Go through line-by-line of '''broken_quad.py''' and create syntax errors here and there. Not too many, but at least one or two errors on each line
| |
− | # Switch computers with another student in the class, and now both of you should try to fix the other's program
| |
− | # Go through and fix all the syntax errors that they created
| |
− |
| |
− | '''Agenda:'''
| |
− | * Complete and demo [[Quadratic Formula Assignment]]
| |
− | * Introduction to Conditionals
| |
− | ** Comparison operators (<, >, <=, >=, ==, !=)
| |
− | ** Boolean values: True, False
| |
− | ** [[Comparison operators assignment]]
| |
− | ** if statement
| |
− | ** if-else statement
| |
− | ** [[Media:BooleanLogic.ppt]]
| |
− | ** [[Logical operators assignment]]
| |
− |
| |
− | == Monday (2/25/13) ==
| |
− | '''Warmup:'''
| |
− | * Without using a computer, identify the syntax errors in the following code
| |
− |
| |
− | <syntaxhighlight lang="Python">
| |
− | a b = 1
| |
− | b + 2 = c
| |
− | print(1, 2, 3, a, b, c)
| |
− | x = input(please enter an x)
| |
− | </syntaxhighlight>
| |
− |
| |
− | '''Agenda:'''
| |
− | * Demo the following programs
| |
− | ** Triangle Area Program
| |
− | ** Circle Calculator Program
| |
− | ** Pythagorean Theorem Program
| |
− | * Demo your progress on the [[Quadratic Formula Assignment]]
| |
− |
| |
− | == Thursday (2/21/13) ==
| |
− | '''Agenda:'''
| |
− | * Be sure to complete the programs from last class (see Tuesday (2/19/13))
| |
− | ** Triangle Area Program
| |
− | ** Circle Calculator Program
| |
− | ** Pythagorean Theorem Program
| |
− | * Complete the [[Quadratic Formula Assignment]]
| |
− | ** Your progress on the assignment will be graded
| |
− |
| |
− | == Tuesday (2/19/13) ==
| |
− | '''Warmup:'''
| |
− | * What are the final values of '''x''', '''y''', and '''z'''?
| |
− | <syntaxhighlight lang="Python">
| |
− | x = 1
| |
− | y = 2
| |
− | z = x + y
| |
− | x = 2*z
| |
− | y = x+5
| |
− | z = y - x
| |
− | </syntaxhighlight>
| |
− |
| |
− | '''Agenda:'''
| |
− | * Slope calculator program review
| |
− | * Input and Output
| |
− | ** [[Media:PythonInputOutput.ppt]]
| |
− | * Triangle calculator program ('''triangleArea.py''')
| |
− | *# Print out a message that says, "Triangle Area Program"
| |
− | *# Print out an empty line
| |
− | *# Write a program that has 2 variables: '''base''' and '''height'''
| |
− | *# Prompt/Ask the user to input values for the base and height
| |
− | *# Calculate the area of a triangle and print it out: '''Triangle Area: ###'''
| |
− | * Circle calculator program ('''circleCalc.py''')
| |
− | *# Print out a message that says, "Circle Area and Circumference Program"
| |
− | *# Print out an empty line
| |
− | *# Create a variable named '''radius''' and prompt/ask the user to input a 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: ###"
| |
− | * Pythagorean theorem program ('''pythagorean.py''')
| |
− | *# Print out a message that says, "Pythagorean Theorem Program"
| |
− | *# Print out an empty line
| |
− | *# Create a variable named '''a''' and prompt/ask the user to input a value for '''a'''
| |
− | *# Create a variable named '''b''' and prompt/ask the user to input a value for '''b'''
| |
− | *# Calculate and print out the length of the hypotenuse using the [http://en.wikipedia.org/wiki/Pythagorean_theorem Pythagorean theorem]
| |
− | *#* Hint: You will need to square '''a''' and '''b''' with the exponent/power '''**''' operator
| |
− | *#* Hint2: In order to do square root, you need to '''**0.5'''
| |
− | * Complete the [[Quadratic Formula Assignment]]
| |
− |
| |
− | == Thursday (2/14/13) ==
| |
− | * Introduction to Python
| |
− | ** WingIDE 101
| |
− | ** [http://en.wikipedia.org/wiki/Hello_world_program Hello world program]
| |
− | * Introduction to Values, Types, and Variables
| |
− | ** [[Media:ValuesTypesVariables.ppt]]
| |
− | ** Complete [[Values, Types, and Variables Identification assignment]] in your APS Google Drive
| |
− | * Math operations in Python
| |
− | ** [[Media:PythonMathOperations.pptx]]
| |
− | * Slope calculator program ('''slope.py''')
| |
− | *# 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
| |
− |
| |
− | == Tuesday (2/12/13) ==
| |
− | '''Agenda:'''
| |
− | * Digital Portfolio Update
| |
− | *# Meet with your 2nd Quarter Project Team
| |
− | *# Distribute your team's Scratch game to all members (go to 1/17/13 for links to games)
| |
− | *# Each member should update their digital portfolio by adding their team's game
| |
− | *# Your team game should have a similar page as the rest of your games
| |
− | *#* Game title
| |
− | *#* Team name
| |
− | *#* Team members
| |
− | *#* Game description / storyline
| |
− | *#* How to play
| |
− | *#* Link to play the game on the Scratch website
| |
− | *#* A recorded screencast using Jing
| |
− | * Course Request Forms
| |
− | * [[Media:BasicProgrammingTerms.ppt]]
| |
− | *# Answer the questions at the end of the PowerPoint using APS Google Docs
| |
− | *# Title the document: Basic Programming Terms
| |
− | *# Share the document with Mr. Bui
| |
− | * Introduction to Python
| |
− | ** WingIDE 101
| |
− | ** [http://en.wikipedia.org/wiki/Hello_world_program Hello world program]
| |
− | == Friday (2/8/13) ==
| |
− | '''Agenda:'''
| |
− | * Networking Quiz
| |
− |
| |
− | == Wednesday (2/6/13) ==
| |
− | '''Agenda:'''
| |
− | * Networking Quiz on Friday (2/8/13)
| |
− | * [[Media:NetworkingBasics.pptx]]
| |
− | ** packets
| |
− | ** server
| |
− | ** client
| |
− | ** Local Area Network (LAN)
| |
− | ** Wide Area Network (WAN)
| |
− | ** switch
| |
− | ** router
| |
− | ** gateway
| |
− | ** types of network cables
| |
− | ** circuit-switching
| |
− | ** packet-switching
| |
− | * Rise of the Video Game: Level 1
| |
− |
| |
− | == Monday (2/4/13) ==
| |
− | '''Agenda:'''
| |
− | * Packet-switching vs. Circuit-switching Networks
| |
− | ** [http://www.pbs.org/opb/nerds2.0.1/geek_glossary/packet_switching_flash.html Packet-Switching Animation]
| |
− | ** [http://www.antibodynet.com/ascend/circswi1.gif Circuit-Switching Animation]
| |
− | * Networking Quiz on Friday (2/8/13)
| |
− | * Network Diagrams
| |
− | *# Using [http://www.diagram.ly/ Diagrams Online], create a network diagram of your home network
| |
− | *# Include and label all the different devices and computer systems that connect to your home network
| |
− | *#* Laptops, desktops, tablets, cell phones, consoles, DVRs, etc.
| |
− | *# Include and label all the networking components (switches, routers, modems) on the diagram
| |
− | *# Draw lines to connect the computers to the networking components
| |
− | *# Use different lines to differentiate hard-wired connections and wireless connections
| |
− | *#* Example: Use solid lines for wired and dashed lines for wireless
| |
− | *#* Include a key/legend on your diagram for the different lines
| |
− | *# Identify your modem or router's internet service provider
| |
− | *# Make sure the diagram looks clean
| |
− | *# Include your name at the top
| |
− | *# Be sure to save
| |
− | *# Export as PDF and save as Home Networking Diagram
| |
− | *# Upload to Google Drive and share with Mr. Bui
| |
− |
| |
| == Archives == | | == Archives == |
− | * [[CS1 - 1213 - January]] | + | * CS1 - 1819 (Poland) - APS Canvas |
− | * [[CS1 - 1213 - December]] | + | * CS1 - 1718 (Poland) - APS Canvas |
− | * [[CS1 - 1213 - November]] | + | * CS1 - 1617 (Poland) - Google Classroom |
− | * [[CS1 - 1213 - October]] | + | ** [https://docs.google.com/a/apsva.us/document/d/1VnXYBgVIABKBGVYNuoQQ6E_6kUzcNah2TFlM5QgTOW0/edit?usp=sharing 2017 Syllabus] |
− | * [[CS1 - 1213 - 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] |