AP Computer Science-A Daily Lessons - syllabus

November 2017
Date Warm-up Class Activities Objectives. SWBAT: Homework
17 Write code to swap the first and last letter of a string.
  1. Review Quiz #3, earn back points.
  2. Create a Codingbat account. Put in my email for Teacher Share in prefs. dOGrady-Cunniff@ccboe.com
  3. Do String problems in CodingBat together:
    doubleChar   countHi 
  4. Continue Assignment #5 Pivot Strings.
  • Manipulate strings
  • Write methods with return values
HW#10: Edhesive Unit 3 Lessons 25. 26 and 28 due Monday 11/20 7am
16 What is "Ready2Go".toUpperCase();
  1. Do Quiz #3 in Edhesive
  2. Complete Edhesive lesson 27
  3. Start Assignment #5 Pivot Strings.
  • modify strings
  • test strings
15 What is "try".compareTo("to get this right");
  1. Review for Quiz #3 tomorrow. (.equals, .compareTo, for loops indexing String and Array, charAt, Array contents, toLowerCase, toUpperCase)
  2. Complete Edhesive Lesson 27 by tomorrow
  3. Complete Assignment #4 Alien Message Board by the end of the week.
  • Quiz review
  • Work on code
14 What is "a".compareTo("b") and why?
  1. Review Lessons 21-24 for points with review questions in Kahoot#2. USE YOUR REAL NAME TO GET POINTS
  2. Go over Lesson 26-27 concepts together.
  3. Complete Assignment #4 Alien Message Board by the end of the week.
  • Use algorithms with arrays. Evaluate searching methods
13 Write a for loop to write out the contents of String[ ] s = new String[4]; backwards.
  1. Review Lessons 21-24 with review questions in Kahoot.
  2. Work on Assignment #4 Alien Message Board
  • Review strings, truth tables, logic, loops and arrays.
         
9 Write the code to set the first item in the array int[] a = int[15]; to zero. Work on Edhesive lesson 24 about for loops through the review questions
  • Use loops with data structures like String and Array
HW #9:
Edhesive Unit 3 Lessons 21-23 not completed in class due Monday 11/13 7am
8 What is the logic equlvalent using DeMorgan's to !( x || y ) Finish Edhesive lessons 22-23
7 Write the binary and decimal for the hex number 1B
  1. Edhesive through lesson 21 goes on 1st quarter.
  2. Take notes together on arrays
  3. Plan Assignment #4 Alien Message Board together.
  4. Work on Edhesive lessons 22-23
  • Declare and use arrays.
  • Manipulate strings
6 What values of x will cause this code to crash?
if( (x%10!=0 && x/(x%10) >5)
  1. Go over Strings and String functions. null, scope, primitives, API and classes. Put your answers in Class Notes in OneNote
  2. Plan code together using Strings.
  3. Do Edhesive lessons 21and 22
  • Work with strings as objects
  • Use String functions
         
3 Give an example of a string.
  1. My apologies, Unit 3 is now available. or not.... please do Do Edhesive lesson 21
  2. REMEMBER ALL CODING ADVITIES ARE DUE TODAY. Homework due end of the weekend.
  • Catch up on any old work. Earn back points.
HW#8: EdhesiveUnit 2 Lessons 17, 18 and 19 due Monday 11/6 7am
2 What is a short circuit-evaluation?
  1. Do Edhesive lesson 21
  2. Earn back quiz points: Log into CodeHS ( Clever.) and do Quiz#2. There are 25 questions. Write down and hand in a separate piece of paper that says WHY each answer is the right answer
 
  • Catch up on any old work. Earn back points.
1 What is the binary and hex equivalent of the number 14 in decimal?
  1. Archie needs to take the Exam before people can do make-up points (he was the only one absent) If he is in class, you can give him the code and then email me (dogrady-cunniff@ccboe.com) and let me know everybody has taken the exam.
  2. Archie, you are on your honor to work on your own, and not use notes when taking the exam.
  3. In the meantime, Complete lesson 20 in Edhesive. PEOPLE NEED TO TAKE NOTES ON WHAT YOU ARE LEARNING IN EACH LESSON so you have something to review for each quiz or test. You have Java notes (the folded papers we started earlier in the year, if you can't find yours, get a new sheet of paper and fold in in half and keep it in your folder.) Add notes for Lesson 20. It doesn't have to be very detailed, just the most important things to remember.
 
  • Use flag variables to inform loops
October 2017
Date Warm-up Class Activities - Pacing Guide Objectives. SWBAT: Homework
31 What is the binary and decimal equivalent of A in hex?
  1. Finish the end of the Review for Quarterly Exam
  2. Take the Quarterly Exam.
  3. All of the Edhesive code exercises and assignments will be used as a project gradc for quarter 1. Any late assignments (Lessons 1-16 and Assignments 1-2) can be done for half credit this week.
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. HW#8: EdhesiveUnit 2 Lessons 17, 18 and 19 due Monday 11/6 7am
30 if !(a>b) which of these are true: b<=a, a<=b, b>=a, a>=b, b<a, a<b
  1. Do the binary conversion program and show results
  2. Review hex and DeMorgan's together
  3. Review for Quarterly Exam #1tomorrow
  • Simplify binary as hex
  • Use DeMorgan's Law with inequalities
         
27 Go to room S208
(free warmup points!)
  1. Presentation on DeMorgan's Laws 
  2. Review logic tables exercise in OneNote Unit 1
  3. Develop hints to get 100% on problems like the ones on pages 70-80 in the AP study guide working in pairs.
  • Use deMorgan's law and truth tables to accurately simplify Boolean expressions
  • Develop strategies to answer AP style Java questions.
HW#7: Edhesive Unit 2 lessons 13-14 due Monday 10/30 7am
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 value of A will allow a short circuit evaluation of A && B?
  1. Do 16: DeMorgan in Edhesive .
  2. Do logic tables exercise in OneNote Unit 1
  • Use deMorgan's law and truth tables to simpleify Boolean expressions
24 Write this in Java: if it is not true that (x>0 and y>x) print "oops"
  1. Review the beginning of else, boolean and truth tables together in Edhesive . (the rest is for homework)
  2. Complete a truth table together.
  3. Look at short circuit evaluations and additional examples together. Do Lesson 15
  • Write complex conditional statements.
  • Analyze conditional statements with truth tables
23 What is the binary number for 9?
  1. Reminder: Homework 6 was due today.
  2. Review simple if , if decisions and else.
  3. Assignment 2 due Thursday.
  • Use conditional statements
  • Use Boolean logic
        
20 What decimal value does the binary number 110 represent?
  1. Play the binary game.
  2. Finish change machine. Paste working code into OneNote.
  3. Develop Assignment 2 together: Time Converter. Plan in OneNote
  • Convert numbers between decimal and binary
  • Design programs to calculate values using the design process, div and mod.
HW#6:
Edhesive Unit 2 lessons 11-12 due Monday 10/23 7am
19 Why do roundoff errors occur?
  1. Quick overview of binary.
  2. Build a change machine together. Plan in OneNote
  • Describe causes of imprecision in computer computations.
  • Design programs to calculate values using the design process, div and mod.
18 Generate a random number from 1 to 5 inclusive.
  1. Do Edhesive Lesson 10: Roundoff error.
  • Allow for errors in computer roundoff
17 Given int z=7; what is the value after z--;z--;z++;
  1. Quiz (\t means tab)
  2. Go over random numbers together
  3. Finish Edhesive Lesson 9: Math function Coding Activity
  • Generate random numbers within a certain range.
16 Given int size=42; What equation will tell how many feet are in size inches?
  1. Math functions: pow, sqrt, abs and random . (quick reference)
  2. Quiz review for tomorrow:
  3. Finish Edhesive Lesson 9: Math functions Fast Start and Review questions.
  • Review variable names, Use built in Math functions
         
13 If z = 22, what would z/=4 be?
  1. Complete Edhesive Lesson 8 string and number output.
  2. IF YOU DID NOT COMPLETE Assignment 1: Movie Ratings due Oct 5, you MUST come in during PRIDE time by Wednesday for help or get a 0 on the assignment. (It must be done in Dr. Java if not done previously)
  • Combine calculations with output and strings.
HW#5: Edhesive Unit 1 lessons 4-5 due Monday 10/16 7am
12

x +=1 means x = x + 1;
What will this code print given int x=3, int y=-7? 

while ( x>-10 ){
   x += 3;
   x += x%7;
   x = x + y;
   System.out.print(x + " ");
}

  1. Pair programming exercise. Use Dr. Java to do the coding activities in Lessons 6 and 7.
  • Use the new IDE and blended learning system to download, code, test and then upload coding assignments.

NOTE: You should be spending at least 1 hour a week outside of class working on AP Java lessons and practices.

11 Write the equation to show the number in the 10's place for a 2 digit number.
  1. Long class today because of PSAT.
  2. Review Mod and Quiz Review. Quiz will be next Monday.
  3. Use Dr. Java to create a program to solve the warmup.
  4. Figure out how to use the Dr. Java debugger.
  • Use the new IDE, Dr. Java
10 What is the output:
for(int s=15;s>10;s--)
System.out.print(s + "\n" + s%2);
  1. Review the design process and stages of development (code/compile/run/debug).
  2. Do the Mod and Quiz review in OneNote Unit 1
  3. Experience a shared VR experience.
  4. What support/help do people need who are far behind in Edhesive?
  • Review mod, loops, print,
         
6 What is the answer to 38 % 8 % 5?
  1. Investigate some advances in VR and how Java can create VR worlds, as well as harware/software advances in new 3d scanners.
  2. Complete lesson 7 on mod including the coding assignment
  3. HOMEWORK #4 DUE at the break of dawn Monday morning.
  • Discuss advances in VR that can be programmed.
  • Program using modular operators.

HW #4:

Complete all Edhesive activities for points in Unit 1 lessons 1-3
due Monday 10/9 7am

Need help with hw? Come during PRIDE time

5 What is a widening cast?
  1. Review debugging and submitting assignments in Edhesive.
  2. Review and plan for Assignment 1: Movie Ratings together. due today, 10 pts
  3. Do Lesson 7: Modular Division assignments for points. (should be a review)
  • Create an IPO program with varied data types.
  • Use modular division to find remainders.
4 Write the correct cast for int x = 7.5;
  1. Review casting, formal and informal.
  2. Complete Edhesive Term 1: Lesson 6 - Review Questions 5 pts
  3. Term 1: Lesson 6 - Coding Activity 3 pts
  4. Assignment 1: Movie Ratings due Oct 5, 10 pts
  • Review casting in a strongly typed language.
  • Download template code, complete, and upload to Edhesive.
3 Write a for loop that prints:
0.51.01.52.0
  1. Ice breaker: who is in the room?
  2. Talk about casting. Do the program in Edhesive with the video in Term 1: lesson 6.
  • Change the way information is stored by casting.
2 What is the value of double x if x = 3 / 4 * 12 + 2.5 * 5 - 15 % 6
  1. Review FOR Loops.
  2. Megan, Mike, Jared, Abby, Haley and Gavin need to join the Edhesive class (see 9/29)
  3. Discuss professional honor codes and Edhesive.
  4. Complete the Edhesive introduction. Take the honor code survey.
  5. Review materials in Lessons 1-5.
  • Describe conventions for blended learning environments.
  • Submit assignments through Edhesive
September 2017
Date Warm-up Class Activities Objectives. SWBAT: Homework
29 What is the output:
for(int s=8;s<10;s++)
System.out.print(s + "\n" + s%5);
  1. Type your slope program into CodeHS ( Clever.) as a Java console program and make it work.
  2. Go to Edhesive.com and click SIGN UP.
    Click I HAVE A SECTION TOKEN
    Create an account with a real email address.
    Section token is 2a7239
    Click email confirmation to complete sign up.
  3. Regain quiz points if needed: show completion of For Loop review, operators,
  • Join class account
  • Predict the output of for loops
  • Use math operators on different kinds of variables.
hw3
28 What is the output:
for(int x=9;x>6;x--)
System.out.print(x);
  1. Review quiz.
  2. Do the worksheet on loops and output
  3. Complete required lessons in CodeHS ( Clever.).
  • Review Java for loops and output
27 Describe a way that you demonstrate integrity.
  1. Quiz on writing arithmetic expressions, basic for loops, I/P/O programs.
  2. Start the lesson on While Loops in CodeHS ( Clever.).
  • Demonstrate understanding of for loops, arithmetic expressions and I/P/O programs.
26 According to the syllabus, how much is an asssignment worth if it is one day late?
  1. Review for loops. Look at AP types of for loop questions.
  2. Review HW#2
  3. Review arithmetic expressions
  4. QUIZ TOMORROW
  • Review loops, expressions and code design patterns for I/P/O, decision trees.
25 According to the syllabus, what percent of the class grade is based on product?
  1. Do the section on For Loops in CodeHS ( Clever.).
  2. Answer questions in OneNote : Unit 1 intro : For Loops
  3. Let me know tomorrow if there were any challenges or issues.
  • Write for loops in Java
  • Read and interpret for loops
         
22 What's the difference between print and println?
  1. Return signed syllabi
  2. Do the problems on Operators
  3. Homework #3: due next Friday 9/29: Complete Basic Java up through Comparison Operators in CodeHS ( Clever.).
  • Modify code with arithmetic expressions.
h2w
21 What's the difference between a syntax and a logic error?
  1. Review the syllabus. Take home and return signed.
  2. Do this worksheet together (here are sample programs developed in class)
  3. Do the Arithmetic expressions lesson in CodeHS ( Clever.)
  • Develop programs for input/output/processing
  • Do math with mixed variable types
20 Which is bigger, a class or method?
  1. Discuss Eclipse/Java projects. Run programs from yesterday.
  2. Copy this code into Eclipse. Fix all 8 errors. Run the program and paste a screenshot of the output into OneNote : Unit 1 intro : Conversation program
  3. Respond to comments in OneNote: Class Notes : CodeHS Basic Java
  • Run programs in Eclipse
  • Fix syntax, runtime and logic errors
19 Define algorithm.
  1. Discuss homework problems.
  2. Explore the code 2.3.3. UserInput
  3. Presentation: real input in Java. Take notes.
  4. Check to see what version of Eclipse we have
  5. Copy the code from the presentation. Create an Eclipse workspace on H:, create a new project,
  • Read different kinds of inputs.
  • Create a Java program in Eclipse
18 What are the 3 simple variable types needed for the AP exam?
  1. What is computational thinking? What is the big picture of algorithm development in CS, humanities, math and science?
  2. How are VR programs created? View the VR coure in CodeHS.

College Fair, majority of class out.

  • Define computational thinking and give examples of complex algorithms
  • Describe the types of code used in creating VR worlds.
         
14 What does int x = 5; mean?
(describe what is happening inside the computer when it is given that command)
  1. Consider opportunities: Congressional App Challenge, Bebras Challenge, UMBC CWIT, RiseUp4CS, Aspirations, Ladies Explore CS,
  2. Go over a tricky problem together: 28-2
  3. Add to notes, what are the limits for the different variable types? What happens when you mix variable types? Discuss arithmetic expressions.
  4. Do user input in CodeHS ( Clever.)
  5. Remember: Homework #1due tomorrow
  6. Homework #2: Write out the code for these programs on paper.
  • Consider CS opportunities.
  • Find bitsize and maximum values for Java variables.
  • Debug code using functions with parameters.
  • Prompt users to input values for variables
hw1
13 What is the command to print "hello" in Java?
  1. Take notes on the kinds of variables we need to know in Java.
  2. Look together at the First Integer Program. Look at how the computer allocates resources and the process of running a program.
  3. Log in through CodeHS or Clever. Do the section on variables.
  • Declare, initialize, and print variables
  • Describe how a program is managed internally.
12 Draw the flowchart for:
if (you miss a class) do the warmup when you return.
  1. Explore the JavaScript behind the puzzles for different kinds of conditions and loops. Look at page 1 of AP Java language features
  2. Join CodeHS classroom. Do section 1) printing in Java. Add notes to your Java book.
  • Print in Java
11 What is the flowchart symbol for a conditional?
  1. Work as a row team to draw out the flowchart that decides what the perfect way is to shake up your summer
  2. Develop algorithms together to solve puzzles 19-4 and 24-11. LOOK FOR PATTERNS!
  • Draw a multistep flowchart
  • Develop efficient algorithms by looking for patterns
 
8 What symbols mark the beginning and end of a section of Java code?
  1. Write code and flowcharts together for different kinds of conditionals.
  2. Write pseudocode and flowcharts to describe algorithms to solve these 2 conditional/loop problems. Farmer6 and Minecraft12
  3. HOMEWORK #1: Complete at least 3 puzzles at each puzzle level from 21-29 (excluding 26) of the Code.org Express course. (variables, for loops, functions)
  • Draw flowcharts to demonstrate algorithms
  • Diagram solutions to logic problems using conditions and loops
 
7 What symbol marks the end of a Java statement?
  1. Types of errors in coding
  2. Comments in Java
  3. Nested ifs in Java
  4. Creating flowcharts for complex logic.
  5. School Lesson: The Warrior Way: Responsibility in Java
  • List different kinds of computer errors
  • Demonstrate how to add single line and multi-line comments in Java
  • Created nested if structures
  • Draw conditionals in flowcharts
  • Review school expectations on Responsibility
6 What are the 2 classroom rules?
  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. Discuss the basic software design process: understand the problem, brainstorm/research solutions, devise a solution, code, debug, analyze and improve.
  4. Review Code.org Express course challenges, vocabulary, and concepts together. Log in through Clever.
  5. School Lesson: The Warrior Way: Respect... in Java
  • Apply steps in software design
  • Debug and code logical problems
  • Create a Java class with a main method to review school expectations on Respect.
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. What is AP Computer Science about?
  4. Join the Code.org Express course and try at least 3 puzzles in 3 different levels. http://studio.code.org/join/YTPTQS. Log in through Clever. Take notes on vocabulary and concepts.
  • Describe basic class structure and rules
  • Describe basic classroom procedures

Write the code to see if the first letter in the String s is a blank space

Write the code to see if the first element in array a is 0 Do lesson 24, the for loop coding activity

Next week

  1. Do codingbat array-1 sameFirstLast together
  2. Do codingbat array-1 commonEnd on your own.

 

Product grade. from Edhesive.

play hexinvaders http://www.hexinvaders.com/

HW due Nov 3 17: while loops . 18: tracing code and counting iterations 19: More loops

in class: Do Assignment 3 planning together. Due next Tuesday.

W: 20: flag variables deMorgan's practice https://runestone.academy/runestone/static/JavaReview/Conditionals/cDeMorgans.html

Th: 21: strings as class types.

F: 22: string functions exam 2 review.

M: exam 2

HW#7 complete lessons 13 (else) and 14(Boolean and truth tables) on your own

National Cybersecurity Career Awareness Week Nov 13-18

lifejourney

prod.lifejourney.us class code 5pxcnvg

Review hw#2 (advanced students make codingbat problems) and for loop/print

HW #4: Complete all Edhesive activities for points in Unit 1 lessons 1-3
due Monday 10/8 7am

Homework #3: due next Friday 9/29: Complete Basic Java up through
Comparison Operators in CodeHS ( Clever.).

Homework #2: Write out the code for these programs on paper.

HOMEWORK #1: Complete at least 3 puzzles at each puzzle level from 21-29 (excluding 26)
of the Code.org Express course. (variables, for loops, functions)

https://runestone.academy/runestone/static/LaPlataAPCS/index.html

be sure to use this http://interactivepython.org/runestone/static/JavaReview/index.html