Warm Up Write the output of the following code on the back of Understanding Strings Worksheet String words = "time to learn on a Thursday! let's play"; System.out.println(words); System.out.println( words.substring(35) + " " + words.substring(0,4) + " " + words.charAt(1) + words.charAt(12) + words.charAt(33) + words.charAt(0) + words.substring(3,4) + "ad."); if( words.length() == 39 ) { System.out.println(words.equals("time to learn on a Thursday! let's play") + "!" ); } Using our detective skills, what can we say about the methods substring and charAt? How do they work? Head to the Java String API to learn more about these methods. Classwork Look at the Official AP CSA Java Quick Reference Sheet - watch 2.7/2.6 String videos for clarification Work on CodeHS Understanding Strings Worksheet-hand in today (challenge is bonus) 2.7.4 Discussion (Order of Operations with Concatenation) - Friday 2.8 String Literal vs String Object -> under the hood - Friday (BIG IDEA: use String.equals() when comparing Strings) Dashboard Check On Monday Homework
2.7.8 Auto-fill - coding methods Work on Strings 2.7 Preview String methods in 2.8 Work period tomorrow to finish up to CodeHS 2.8 Classwork
Correct Exercises: 2.5.9 Chat Bot 2.0 2.6.8 How Far Away is ...? please complete this Exit Slip before class ends! Homework Finish up to CodeHS 2.6 Preview Strings - Watch 2.7.1 String Objects and 2.8.1 String Methods - Review examples as needed. Warm Up
please fork this starter - try it (use your notes if needed) - we will correct at 1:25 PM -the rectangle class is already written so look at it! If you have not already done so, complete all CodeHS MC from 2.1-2.6 Classwork Do 2.4.7 Chat Bot and 2.5.9 Chat Bot 2.0 - we will go over solutions at at 1:50 PM Homework Finish 2.3-2.6 Exercises Try 2.6.8 How Far Away is ...?; tomorrow we will look at look at the methods in 2.6.8 How Far Away is ...? and how to call them. Grad Meeting - report for attendance
Go over yesterday's MC questions in preparation for Monday's Test. Classwork
Hand back and go over Tracing Data Types Worksheet #1 and Order of Operations Worksheet Complete Unit 1 MC Practice in AP Classroom in preparation for Monday's MC test One big advantage with AP Classroom is it will autograde your MC and give a full explanation for each question. Classwork
Review of 2.1 and 2.2 (Terminology is Important!) Go over CodeHS exercises from 2.1 and 2.2 - Which ones would you like to go over? 2.3 Method Overloading - do 2.3.7 Custom Piñatas together Try 2.4-2. 6 Methods ; Watch Video and Complete Multiple Choice Homework: 2.4-2.6 MC in CodeHS Start 2.3-2.6 Exercises (Try 2.4.7 Chat Bot and 2.5.9 Chat Bot 2.0 as we will go over these tomorrow!) Unit 1 Dashboard check on Wednesday
Classwork Watch AP Classroom Videos 2.1 Objects (I can't access them but you can; better than codeHS on this topic) Finish CodeHS 2.1.1-2.1.8 Ask for individual help if you need it. Homework Try to Finish CodeHS 2.2 - you have until Wednesday so get it done! We will go over 2.1 and 2.2 in great detail on Wednesday. On Wednesday we will do do 2.3.7 Custom Piñatas together (Tuesday is the pep rally) Classwork
Parsing Integers Worksheet Feel free to watch videos from Unit 1 for clarification as needed. See this page for all Unit 1 Resources. Start to look at how to use objects CodeHS 2.1 Homework Finish Unit 1 - Review Coming Soon Work Period
Discussion of rounding trick from CodeHS 1.6.7 Rounding Using Casting Finish 1.1-1.6 Dashboard Check on Tuesday |
Mr. MarshallA simple man Archives
May 2024
Categories |