CS1 - 1213 - February

From WLCS

Wednesday (2/27/13)

Warmup:

  1. If you have not completed the Quadratic Formula Assignment, then work on it right now
  2. If you have completed the Quadratic Formula Assignment, then save a copy of it called broken_quad.py
  3. We will be going through and purposefully breaking broken_quad.py
  4. Make sure you still have your original quadratic formula program that is not broken. (so you don't lose it)
  5. 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
  6. Switch computers with another student in the class, and now both of you should try to fix the other's program
  7. Go through and fix all the syntax errors that they created

Agenda:

Monday (2/25/13)

Warmup:

  • Without using a computer, identify the syntax errors in the following code
a b = 1
b + 2 = c
print(1, 2, 3, a, b, c)
x = input(please enter an x)

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?
x = 1
y = 2
z = x + y
x = 2*z
y = x+5
z = y - x

Agenda:

  • Slope calculator program review
  • Input and Output
  • Triangle calculator program (triangleArea.py)
    1. Print out a message that says, "Triangle Area Program"
    2. Print out an empty line
    3. Write a program that has 2 variables: base and height
    4. Prompt/Ask the user to input values for the base and height
    5. Calculate the area of a triangle and print it out: Triangle Area: ###
  • Circle calculator program (circleCalc.py)
    1. Print out a message that says, "Circle Area and Circumference Program"
    2. Print out an empty line
    3. Create a variable named radius and prompt/ask the user to input a value
    4. Create a variable named PI and give it the value of pi (you decide how many digits)
    5. Calculate and print out the circumference of the circle. Make sure your output looks like: "Circumference: ###"
    6. Calculate and print out the area of the circle. Make sure your output looks like: "Area: ###"
  • Pythagorean theorem program (pythagorean.py)
    1. Print out a message that says, "Pythagorean Theorem Program"
    2. Print out an empty line
    3. Create a variable named a and prompt/ask the user to input a value for a
    4. Create a variable named b and prompt/ask the user to input a value for b
    5. Calculate and print out the length of the hypotenuse using the 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)

Tuesday (2/12/13)

Agenda:

  • Digital Portfolio Update
    1. Meet with your 2nd Quarter Project Team
    2. Distribute your team's Scratch game to all members (go to 1/17/13 for links to games)
    3. Each member should update their digital portfolio by adding their team's game
    4. 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
    1. Answer the questions at the end of the PowerPoint using APS Google Docs
    2. Title the document: Basic Programming Terms
    3. Share the document with Mr. Bui
  • Introduction to Python

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
  • Networking Quiz on Friday (2/8/13)
  • Network Diagrams
    1. Using Diagrams Online, create a network diagram of your home network
    2. Include and label all the different devices and computer systems that connect to your home network
      • Laptops, desktops, tablets, cell phones, consoles, DVRs, etc.
    3. Include and label all the networking components (switches, routers, modems) on the diagram
    4. Draw lines to connect the computers to the networking components
    5. 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
    6. Identify your modem or router's internet service provider
    7. Make sure the diagram looks clean
    8. Include your name at the top
    9. Be sure to save
    10. Export as PDF and save as Home Networking Diagram
    11. Upload to Google Drive and share with Mr. Bui