Principles of Computer Science Daily Lessons - syllabus

November 2017
Date Warm-up Class Activities Objectives. SWBAT:
17 What method do Java programs start with?
  1. Review Java printing and escape sequences. Create a mug with a handle using at least 2 escape characters with your name on it in repl.it
  2. Add notes about Java variables , input and loops.
  • Create Java programs that print using escape sequences.
  • Write code to declare variables, accept input, and produce output.
16 What is different between Java and JavaScript translating code to machine language?
  1. Join the repl.it class. Username= LastnameFirstname, Use your school email @ccboe.com and password, Use your real name.
  2. Create a program that says "Hello world". Include at least 1 comment.
  3. Run this "Hour of Code" activity with Robbie the robot. Look for differences between Java and JavaScript. Enter your feedback on this form.
  • Create a printing Java program.
15 What possible numbers could come from Randomize(5,7)?
  1. Compare the first 10 features of Differences between JavaScript and Java.
  2. Put all your color designs, house and balloons in OneNote to turn in for points. Inlcude code for the color design and house.
  • Compare language features
  • Document project work
14 How do you create animation using the function anim that changes four times each second.
  1. Match code to comments to create an ever-changing boquet of balloons.
  2. Houses with original features and animation in OneNote with colorful code designs are due today.
  • Match code to comments to create a working program.
13 What are the coordinates of the line that will complete this star?star
  1. Review code to create designs. Code and add color to one of the designs in a JavaScript Graphics Sandbox program in CodeHS ( Clever )
  2. Review animation and getter/setter functions.
  3. Animate 2 features of your house (change color, move, setPosition)
  4. Screenshot and paste pictures of your colorful design and animated house with the code on the OneNote Colorful Designs page in Unit 1.
  • Add color and animation to calculated designs.
  • Document designs and code in OneNote
       
8 & 9

8: What code will put the word "Excellent" in the middle of the Canvas using setText? 

 

9:  What code will draw a line from the top left corner of the canvas to the bottom right corner of the canvas?

  1. Complete the code to create these designs. (see the 2 exercises below, papers are on the front desk)  Put the papers in your folders.
  2. Use the documentation in CodeHS to see how to draw a line. Make a new JavaScript Graphics Sandbox program named HOUSE. Follow the directions to draw a house by filling in the missing numbers in the JavaScript Graphics Sandbox
  3. Add at least 3 extra features to your house: window, fence, tree, etc. 
  • Combine text, shapes, and lines to create designs using JavaScript graphics.
7 What does the number 25 represent in
var c = new Circle(25);
  1. Finish the review of JavaScript Graphics. (side 2)
  2. Complete the code to create these designs.
  3. Finish CodeHS ( Clever ) In Javascript and Graphics on using Graphics in JavaScript. (Last assignments for quarter 1)
  • Combine shapes created with code
6 What code will create a square that is 100 pixels across?
  1. Review JavaScript Graphics. (side 1)
  2. Evaluate MadLib projects. Complete reflections.
  • Create designs with multiple shapes.
  • Evaluate projects with functions, loops, conditionals, input and output
       
3 What function is used to find out how wide the drawing screen is?
  1. Finish the lesson in CodeHS ( Clever ) In Javascript and Graphics on using Graphics in JavaScript
  • Use JavaScript graphics to create designs.
2 Why are global variables used?
  1. Do lesson in CodeHS ( Clever ) In Javascript and Graphics on using Graphics in JavaScript
  • Create simple graphics using shapes in JavaScript
1 What does if(answer==1) mean?
  1. Use these notes to help finish your MadLib program. Be sure to complete everything in OneNote on the planning sheet
  • Use functions, loops, conditions, input and output to create a working program.
October 2017
31 What function is used to input words?
  1. Review the flowchart for a MadLib program that lets you play as long as you want and have a choice of different sentences.
  2. Finish the planning sheet in One Note for the MadLib program.
  3. Work on the MadLib program with your partner. If you are collaborating you can submit one program together, else you'll each have to create your own. See an example
Mr Wathen will be here for the next 3 days while I am at a meeting. All work will be on OneNote and mrs-o-c.com each day and will be due the day it is assigned unless otherwise noted.
30 What function is used to input a whole number?
  1. New seats. Look at a demo of input/output.
  2. Pair programming activity Mad Libs Phase 1. Create a program that asks for words and then fills them into sentences to make funny stories. (multi-day project) start by filling out the planning sheet in One Note (each person fills out a MadLib sheet)
  • Plan and develop a program that uses input, processing and output.
       
27 What is a variable in JavaScript?
  1. Complete notes on JavaScript input/output and variables. Look at how digits and characters are stored in binary ASCII code.
  2. Work on input in CodeHS ( Clever ) in the Javascript and Graphics section. Discuss this example of input and output
  • Document JavaScript code for input, output and variables.
26 What classwork did you complete yesterday?
  1. Either complete yesterday's classwork below or do the virtual reality in training current event reflection.
  • Describe connections to technology and current events in virtual reality.
25 What 2 objects are in all animation programs in CodeHS JavaScript?
  1.  Change of plans. Work on CodeHS ( Clever ) section on Javascript and Graphics, hello world and variables. Watch the videos too.
  • Create text JavaScript programs with output and variables.
24 What is a global variable?
  1. Review OOP terminology in the growing circle program
  2. Complete the growing circle program.
  • Identify OOP vocabulary
  • Complete code that uses conditionals and animation
23 How do you get a random number to represent the roll of a die?
6 sided die
  1. Copy down object vocabulary, circle functions, random functions, color functions and timer code in notebooks.
  2. Read the documentation to see how lines are drawn in JavaScript graphics.
  3. Analyze the Spinner example 7.2.4 together. Mark up the code and experiment.
  4. Complete the growing circle working in pairs. Modify it to shrink and grow in the sandbox.
  • Document object oriented vocabulary
  • Draw lines in graphics
       
20 How often will the function update be called?
setTimer(update,500);
  1. Explore Random circles together.
  2. Do Animation and Games Random Circlesup to 7.2.3 in CodeHS ( Clever )
  • Use getter and setter functions for objects like Circle, Timer, Color
  • Use random values with animation

19

What could have a positive effect on jobs of the future?

  1. Explore sample code using a timer and animation.
  2. Do Animation and Games Timers in CodeHS ( Clever )
  • Create animation with timers

18

Rewrite this code with proper indents:
while(ballsPresent){
takeBall();
if(frontIsClear())
move();}

  1. Watch the TED talk about the future of work. Fill in the notes in OneNote in the Class Notes section.
  • Consider how technology could change the workforce of the future.
17 What are the 3 parts of a for statement?
  1. Quiz
  2. Finish How to indent your code in CodeHS ( Clever )
  • Demonstrate understanding of JavaScript code in Karel
  • Indent code to improve readability
16 What kind of loop is represented by this flowchart?
loop
  1. Quiz review for tomorrow:
  2. Finish More examples in CodeHS ( Clever )
  • Draw flowcharts for code
  • Write code for flowcharts
  • Code examples of loops
       
13 What is the difference between while and for loops?
  1. Plan a solution together for 1.13.4 Random Hurdles considering edge conditions.
  2. Plan a solution together for 2.1.3 Towers considering edge conditions.
  3. Change the 1.14.3 move tennis ball program to put down 2 balls for each ball that was there originally.
  • Consider edge cases
  • Choose the right loop for a problem
12 Write a loop to move until you reach a wall.
  1. Fill in these notes from the Control structures lesson.
  2. Finish the control structures lesson.
  • Combine control structures for problem solving.
11 for(var i=0;i<2;i++)
  if you took the PSAT today write PSAT
  else write in class
  1. PSAT testing.
  2. Complete this while loop puzzle program together with pair programming.
  3. Complete while loops in CodeHS
  • Solve a puzzle with loops using pair programming.
  • Program using while loops
10
if you're happy write good
     else write OK
if you're looking forward to 
     tomorrow write great
else write hanging in there.
  1. Complete examples of flowcharts to code.
  2. Compare for loops to while loops in code and flowcharts.
  3. Check that your CodeHS ( Clever ) is complete, if not, what help or support do you need?
  4. Visit the history of computers in VR
  • Experience a VR field trip.
  • Draw flowcharts to match code, write code to match flowcharts
  • Compare different iteration structures.
       
6
if today is Friday
     if you're happy write good
     else write OK
else 
     if you're looking forward to 
        tomorrow write great
     else write hanging in there.
  1. Investigate some advances in VR and how Java can create VR worlds, as well as new 3d scanners.
  2. Review flowcharts.
  3. Copy down examples of flowcharts to code.
  4. Work on while loops in CodeHS ( Clever ). .
  5. Find missing work for the original programming project.
  • Discuss current applications in VR
  • Translate flowcharts into code
  • Use while loops
5
if today is Friday write good
    else write great.
  1. Notebook: Write down examples of loops with conditionals.
  2. Review conditional statements in JavaScript.
  3. Complete the section on if/else statements in CodeHS ( Clever ). [do as homework if necessary]or continue to work ahead.
  • Write loops with conditions
4 What symbols mark the beginning of a comment?
  1. Notebook: Write down examples of common, useful, loops.
  2. Review, offer suggestions, and write reflections on original programs while taking a Gallery Walk.
  3. Complete the section on if statements in CodeHS ( Clever ). [do as homework if necessary]
  4. Original programming product due today. Check the rubric for points.
  • Write conditional statements.
  • Review and reflect on coding project
3 What is skeleton code?
  1. With partners: Arrange this code so it will work to solve the problem.
  2. Complete the code for your Original function and loop project. Paste as text onto OneNote PRODUCT page. Check the rubric for points.
  • Complete efficient code using FOR loops and functions

YOU WILL NEED YOUR NOTEBOOK TOMORROW

2 What is a precondition for the move() command?
  1. Review: Lots of Hurdles with for loops and functions.
  2. PRODUCT: Work with an elbow partner, as assigned, to design a reasonably complex world with a solution that includes at least 3 functions and 2 for loops. Hand in a paper plan with a sketch of the world, description of the program and functions.
  3. Create your world in CodeHS ( Clever ). Create skeleton code with only comments and empty functions. Screen shot and place in OneNote :: Unit 2:: PRODUCT functions and for loops.
  4. If you want to earn back quiz points: Do these JavaScript tutorials on your own and show me that you completed it. (CounterHack)
  • Use the design process to plan a program
  • Create skeleton code with comments
  • Document the design process
  • Collaborate on a design
September 2017
Date Warm-up Class Activities Objectives. SWBAT:
29 What will this code do?
for (int i=0;i<4;i++)
    turnLeft( );
  1. Practice writing pre and post conditions.
  2. Use for loops to solve the Long Stairs - program
  3. Review quiz.
  • Use for loops to solve problems
  • Write pre and post conditions
28 What are comments in code for?
  1. Review quiz by creating a climb the stairs program using at least 3 well named functions.
  2. Design an original world.
  3. Finish SuperKarel and do the lesson on for loops in CodeHS ( Clever )
  • Write loops that repeat a fixed number of times
  • Create an original World in Karel
27 Describe a way that you demonstrate integrity.
  1. QUIZ: commenting, top down design and functions.
  2. When finished, start the SuperKarel lesson in CodeHS ( Clever )
  • Demonstrate understanding of top down design, commenting and functions.
26 According to the syllabus, how much is an asssignment worth if it is one day late?
  1. Review yesterday's work.
  2. Review commenting code, functions, start function and top down design for the quiz tomorrow.
  • Review commens, top down design, and functions for tomorrow's quiz.
25 According to the syllabus, what percent of the class grade is based on product?
  1. Do the lesson on CodeHS ( Clever ) about Commenting Your Code
  2. Fill in the answers to the questions in OneNote Unit 2 Java: Commenting practice
  3. Read the article about commenting code and answer questions in OneNote Unit 2 Java: Commenting Article
  • Add comments to code
  • Distinguish useful comments from distracting comments.
       
22 Which function executes first in a Karel JavaScript program?
  1. Return signed syllabi.
  2. Review Karel JavaScript commands.
  3. Do the last problem on the function worksheet. Discuss top down design and program efficiency.
  4. Finish the first 6 lessons in CodeHS ( Clever ) Karel.
  • Develop using top down design.
21 Name a computer language we will learn in this class.
  1. Review the syllabus.Take home and return signed.
  2. Do this function worksheet together.
  3. Complete the start function and top down design with CodeHS ( Clever ) Karel.
  • Develop flexible functions
  • Include all code in functions
20 Why is the CS traveling problem hard to solve?

County Pre-Test

  1. When finished, log in to Office 365 and find the CodeHS page in your Class Notes in the OneNote notebook. Respond to any questions there.
county pretest
19 What is computational thinking?
  1. Summarize the example algorithms and reflect in OneNote class notebook.
Overview
 CS: Traveling - Add a screenshot of your best route through South Africa
 Humanities: Words Over Time - Add a screenshot of a comparison of 3 similar terms with your analysis.
 Math: Cellular Automata - Design a pattern that lasts at least 5 clicks. Add a screenshot.
 Science: Genomics
  • Capture examples of algorithms at work.
  • Explain the value of solving complex algorithms

Pretest will be tomorrow

18 How can you earn warm-up points for a day you were absent?
  1. What is computational thinking? How does it apply to different areas?
  2. Explore algorithms and reflect in OneNote class notebook.
  • Define computational thinking
  • Experiment with examples of algorithms.

Pretest will be Wednesday 9/20

       
14 How can Karel reverse direction?
  1. Consider a logic challenge together. Bebras Challenge. and the Congressional App Challenge,
  2. Log in through CodeHS or Clever and continue work.
  • Apply logic to problem solving
  • Consider challenges
  • Write code for JavaScript .
13 List 2 of the 4 Karel commands
  1. Apple just announced facial recognition and AR on screen for the new Apple phone. What algorithms might be involved?
  2. Look over the Karel Javascript language summary.
  3. Review Make a Tower together.
  4. Log in through CodeHS or Clever
  • Describe algorithms in new technology.
  • Use JavaScript to create repeated commands.
12 Define a recursive procedure.
  1. Join the CodeHS classroom
  2. Do the introduction, quiz and first program.
  3. Discuss features that are the same/different from LightBot to Karel JavaScript.
  • Use JavaScript to call methods to move an object on screen.

Pretest will be Wednesday 9/20

11 What makes a solution efficient?
  1. Define recursion.
  2. Discuss solutions to LightBot loops together 3-1 and 3-3
  3. Solve Lightbot Loops
  • Define recursion
  • Write algorithms to describe recursive solutions
  • Code recursive solutions
 
8 In what way is a computer literal?
  1. Review problem solving for medal winners
  2. Write pseudocode for Lightbot puzzles. Work through a simple U turn and a zig zag together. Compare solution efficiency
  • Express an algorithm as pseudocode
  • Evaluate solutions for efficiency

Class assemblies today

7 Define algorithm
  1. Solve the problem together about medal winners.
  2. See how many puzzles you can solve in LightBot (on Handout Drive in PCS). Document the concepts and vocabulary that are covered.
  • Apply logic to problem solving.
  • Use symbolic code to control a virtual robot using sequence and functions.

Events today during 2nd(fire drill) and 6th (PRIDE fair)

6 Describe something using a computer that is NOT computer science
  1. Write your first name on your name tent in large print. (Use the name you want to be called: first name or nick name)
  2. Write and decorate your first name on your folder
  3. Design and compare algorithms to create a secure password for any website.
  4. Solve one logic puzzle together, then solve one on your own or with a partner
  • Design a useful algorithm
  • Use logic to step through a solution
5 Define Computer Science in your own words.
  1. Fill out index card with your schedule
  2. Introduction to class presentation
    Save notes for tomorrow.
  3. Oveview of what is covered in Principles of Computer Science
  • Describe basic class structure and rules
  • Describe basic classroom procedures

Review if/else from Karel JavaScript.

review while loops from Karel JavaScript.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Join the CodeHS class.

Work as a row team to draw out the flowchart that decides your morning personality