Sunday, October 30, 2016

October 31, 2016

Happy Halloween!

Objective: Use for loops on Python to solve simple math problems

Warm-up (in your notebooks):

Suppose weekday = True, raining=False, and hot=False.  Which of the following are true?
•    weekday and raining
•    not hot and weekday
•    not hot and (weekday or raining)
•    hot or weekday or raining

Activities
  • Type along: for loops and lists in Python.  
    • Start pythonanywhere
    • Create a file called for_loop_examples.py
    • for loop and list examples
  • Finish pig_latin_sentence()
  • for loop & list challenge
    • minimum(num_list) - return the minimum number in a list
    • mean(num_list) - return the average number in a list as a floating point number
    • print_odds(num_list) - given a list of positive integers, print only the odd numbers in the list

Wednesday, October 26, 2016

October 27, 2016

Objective: Use string operations to convert English to Pig Latin

Activities
  • log in to pythonanywhere.com.  Open your pig_latin.py file.
  • 1.3.5 - Strings
    • Review Strings on the Python Quick Reference Card
    • Challenge: incrementally create a pig_latin() function 
    • Step 1 - Move the first letter of the word to the end.
    • Step 2 - Move the first letter to the end if it is a consonant
    • Step 3 - Append 'ay" if the first letter is a consonant, 'way' if a vowel.
    • Step 4 - If the first two letters are consonants, move both to the end before adding 'ay'
    • Show me test_pig_latin() working correctly for a mastery grade
      • Appoint TAs to help check and coach
      • This replaces 1.3.5 - do not need to submit it through myPLTW
  • 1.3.6 - Intro to lists
    • Demonstration of list features on the Quick Reference Card
    • Challenge: incrementally create a pig_latin_sentence() function
      • Take a string containing a sentence as input, return a list of words in the sentence
      • Convert each word to pig_latin, concatenate to make a Pig Latin sentence
    • Read 1.3.6 Part 3 - Random numbers
    • Write the and test the roll_two_dice function()
    • Show me pig_latin_sentence() and roll_two_dice() working for a mastery grade

Tuesday, October 25, 2016

October 25, 2016

Objective: Edit and run a Python program in  pythonanywhere.com

Activities
  • Overview of pythonanywhere.com
  • Create accounts
  • Upload a Python file
  • Run and test your Python file

Monday, October 24, 2016

October 24, 2016

Objective:  Solve problems using Python string operations

Activities
  • Review objectives for strings
  • Notes - basic string operations in  Python Review
  • Using online documentation
  • Pig Latin problem - mastery, replaces 1.3.5

Friday, October 21, 2016

October 21, 2016

Objective: Solve problems using strings in Python

Activities
  • Rules for Pig Latin 
  • Challenge 1: print out an address label
  • Challenge 2:  write Python functions to convert English to Pig Latin
    • Download couplands.net > CS Principles > Resources > pig_latin.py
    • 2a: complete function consonants()
    • 2b: complete function pig_latin_1()
    • 2c: complete function pig_latin()
    • Extra challenge: complete function pig_sentence()

October 20, 2016

Objective:  Use strings in Python

Activities
  • Introduction to strings
  • Printing a tic-tac-toe board
  • Continue with activities

Tuesday, October 18, 2016

October 19, 2016

25 minute period - PSAT Testing

Objective:  Use conditionals and branching to write algorithms in Python

Activities
  • Check PowerSchool and myPLTW for missing or overdue assignments 
  • IF both names are written at top of activity file
    • Only one team member needs to submit the activity 
  • Review conclusions to 1.3.2 & 1.3.3
  • Finish 1.3.4
  • Show me function f() from question 4 working for a mastery grade

October 18, 2016

Objective: Write algorithms using nested conditionals

Activities
  • Work on Activity 1.3.4
  • Mastery assignment: show me your solution to 1.3.4 question 4. 

Monday, October 17, 2016

October 17, 2016

Objective: Branching, input and output in Python

Activities
  • Quick review of branching, conditional statements, and boolean expressions
  • Project revisions - complete and hand in!
  • Finish and submit 1.3.3
  • Start 1.3.4

Sunday, October 9, 2016

October 10, 2016

Objectives: Discuss and revise Scratch project submissions - preparing for the Create task.  Learn about careers in computer science.

Activities
  • Discuss grading for Scratch project
    • couplands.net > CS Principles > Resources now contains Scratch project requirements, rubric, examples, and submission form
    • Using the rubric
      • Parts and points 
      • How to write using a rubric
    • Review sample Create tasks from AP Central with scoring and commentary
      • 2b: Iterative and incremental development.
      • 2c: Integrating two algorithms
      • 2d: Abstraction - what is it?
    • Revise and resubmit by Sat. 10/15.  Reply to my comments but don't "resolve" them so I know what you changed. 
  • Scott Weber - Expedia
  • Study sample tasks and commentary on couplands.net > CS Principles > Resources

Friday, October 7, 2016

October 7, 2016

Objective: Introduce Python with the Canopy IDE

Activities
  • Example: aggregator, stepper, walker, accumulator
  • Quiz 1.1: Algorithms and Agile Development
  • Start Activity 1.3.2: Python Variables and Functions
    • Form pairs at your table.  Professional greeting.
    • Login as .\student.  Create a working directory C:\users\student\My Documents\yourName
    • One person starts Canopy and "drives"
    • The other person manages the activity file
      • Download the .docx activity from 1.3.2 > Resources, uploads to Google Drive, and share with partner.  
      • At top of activity file, write both partner names, first and last.
      • Look at the web version of the activity for questions to answer in green.
    • Switch roles frequently
Homework:  Finish and submit 1.2.1

Wednesday, October 5, 2016

October 6, 2016

Objective: Introduce the Python programming language

Activities
  • Technology survey
  • Study materials for Test 1 converted to PDFs, on couplands.net > CS principles > Resources
  • Review Binary/Hexadecimal worksheet
  • Quiz 1.1B - Variable Roles and Scrum
  • Quiz 1.2.1 - Check for Understanding, Binary Representation
Python!
Homework:  Study for test 1 (tomorrow)
    • Content
      • Variable roles and Agile development (see above)
      •  The concept of "state"
      • Booleans & conditionals
      • Events and event handlers
    • Study:
      • 1.1 Key terms
      • 1.2.1 > Resources > 1.2.1 BitsAndBytes.pptx
      • 1.1.5 > Resources > 1.1.5 RolesOfVariables.pptx
      • 1.1.7 > Resources > 1.1.7 SoftwareDesignProcess.pptx

October 5, 2016

Objective:  Convert numbers between bases 2, 10, and 16.  Represent images with RGB.

Activities
  • Quiz tomorrow on number bases
    • Study 1.2.1 > Resources > 1.2.1 BitsAndBytes.pptx
  • Quiz tomorrow on variable roles and Agile development
    • Study 1.1.5 > Resources > 1.1.5 RolesOfVariables.pptx
    • Study 1.1.7 > Resources > 1.1.7 SoftwareDesignProcess.pptx
  • Test 1 Friday
    • Variable roles and Agile development (see above)
    •  The concept of "state"
    • 1.1 Key terms
    • Booleans & conditionals
    • Events and event handlers
  • 1st hour:  Be sure to submit your Scratch project by Friday:  couplands.net > CS Principles > Submit Scratch Project
  • Binary/Hexadecimal worksheet 
  • 1.2.1 Bits and Bytes

Monday, October 3, 2016

October 4, 2016

Objective:  Convert numbers between decimal, binary, and hexadecimal number bases.  Represent colors with RGB values.

Activities
  • 3rd hour: class web site,  blog, calendar
  • Check myPLTW for assignments that have not yet been submitted.  Write them on your personal to-do list.
  • WS: Counting in hexadecimal
  • WS: Powers of 2
  • Binary/hexadecimal worksheet
  • Start Activity 1.2.1 - Answer all questions except 6 & 7.
    • Refer to the October 3 blog for instructions
    • Write your answers in red
Wed: Quiz on Activity 1.2.1 - Number conversions

Friday:  Test 1 on Lesson 1.1 - Mastery!
  • Variable roles, booleans & conditionals, Agile development & SCRUM, milestones in computing
  • To prepare, start reviewing Lesson 1.1 Key Terms, presentations from Lesson 1.1 Resources tabs.

Sunday, October 2, 2016

October 3, 2016

Objective: Convert numbers between bases 10, 2, and 16

Activities - 1st hour
  • Check PowerSchool and mpPLTW for missing assignments.  Today is the last day to submit 1.1.6.
  • Complete and hand in Sprint planning sheet - use to document two sprints in your Scratch project.
  • Work on written responses. See the handout Performance Task: Create - Applications from Ideas for the writing prompts.
  • Submit your Scratch project and written responses using form at couplands.net > CS principles > Submit Scratch Project
    • Final date for Scratch project submission is Friday Oct. 7.  Mastery.
Activities - 3rd hour
  • Web site, calendar, and blog
  • All assignments must be submitted through myPLTW.  Procedure:
    • At the start of an assignment, click the Resources tab and download the activity file to your desktop, e.g. Resources > 1.2.1.A BitsAndBytes.docx.
    • Drag the activity file to your Google Drive. Make sure that file conversion is one so it is converted to Google Docs format.
    • The questions you need to answer are in green in the myPLTW online version of the activity.  Write thoughtful answers to these questions in your Google Doc. Change the text color to red so I can find your answers easily.
    • When done, click the Submit button near the upper left of the myPLTW assignment.  Click the Google Drive tab, navigate to the activity file on your Drive, and submit.
  •  Finish Scratch project presentations