Students learn about the structure and functionality of a for loop and …
Students learn about the structure and functionality of a for loop and use a for loop to traverse a one-dimensional (1D) array. Before using for loops with 1D arrays, students practice identifying the number of times a loop will execute and using trace tables to track the changing values of variables. Additionally, students differentiate between while loops and for loops and convert between both types of loops. Students practice writing for loops to traverse 1D arrays to access elements. This lesson is aligned to CSTA standards.
Students apply their knowledge of traversing 1D arrays to develop algorithms to …
Students apply their knowledge of traversing 1D arrays to develop algorithms to find elements that have specific properties. Students learn how to identify the preconditions and postconditions for an algorithm. Additionally, students differentiate between executing a return statement inside a loop and at the end of a method. This lesson is aligned to CSTA standards.
Students learn about enhanced for loops to traverse a 1D array. As …
Students learn about enhanced for loops to traverse a 1D array. As students explore the functionality of enhanced for loops, they identify differences, advantages, and disadvantages of using an enhanced for loop to traverse an array. Students use an enhanced for loop to calculate the sum or average of the elements in a 1D array. This lesson is aligned to CSTA standards.
Students learn about static variables and constants and identify scenarios where these …
Students learn about static variables and constants and identify scenarios where these types of variables would be useful. Students differentiate between static variables and instance variables as they explore their functionality. Students practice using static variables and constants in program code, including implementing an algorithm to determine the number of elements meeting specific criteria. This lesson is aligned to CSTA standards.
Students explore arrays of objects and learn how to refer to object …
Students explore arrays of objects and learn how to refer to object data when accessing elements in an array. Students revisit inheritance and discover using polymorphism to work with 1D arrays of a superclass type. Students review overriding methods and traverse an array of objects to use subclass methods. This lesson is aligned to CSTA standards.
Students explore the File class and use the Scanner class to read …
Students explore the File class and use the Scanner class to read data from a file into a 1D array. In the process, students revisit the ArrayIndexOutOfBoundsException to identify debugging strategies to resolve off-by-one errors. Using data from a file, students develop algorithms to find the minimum and maximum values in a 1D array. Students plan their algorithms to identify the steps to solve the problem and write pseudocode to outline these steps. This lesson is aligned to CSTA standards.
Students develop an algorithm to reverse elements in a 1D array. Students …
Students develop an algorithm to reverse elements in a 1D array. Students plan their algorithms using manipulatives to identify the steps to solve the problem and write pseudocode to outline these steps. This lesson is aligned to CSTA standards.
Students expand their knowledge of selection statements to evaluate and implement multi-selection …
Students expand their knowledge of selection statements to evaluate and implement multi-selection statements. Students explore the functionality of multi-selection statements and learn to use these to test a combination of conditions. Students use multi-selection statements to implement algorithms to solve problems. This lesson is aligned to CSTA standards.
For this project, students use the skills they have developed throughout this …
For this project, students use the skills they have developed throughout this unit to analyze data from a text file for a topic they are interested in or meaningful to them. Students use the data they chose in a previous lesson to identify the patterns and message they want to convey visually using The Theater. After brainstorming and planning, students develop their programs. This lesson is aligned to CSTA standards.
Students planned their visuals and algorithms to convey a story about their …
Students planned their visuals and algorithms to convey a story about their chosen dataset. Students continue to develop their projects to implement algorithms to analyze the data and portray the findings and results visually. Students reinforce software development skills and processes as they participate in a code review to give and use feedback as they develop their program. This lesson is aligned to CSTA standards.
Students conducted code reviews at the end of the previous lesson to …
Students conducted code reviews at the end of the previous lesson to give and receive feedback that assists in identifying areas of improvement and fixes for problems they encountered. At this stage of the project, students consider this feedback as they finalize development in this lesson. Students share their final projects with their peers to celebrate their successes. This lesson is aligned to CSTA standards.
Students practice developing solutions to AP CSA FRQs on a mock Arrays …
Students practice developing solutions to AP CSA FRQs on a mock Arrays FRQ. Students apply decomposition and annotation strategies to identify the key components of the problem and validate their solutions using Scoring Guidelines. This lesson is aligned to CSTA standards.
Students are introduced to The Theater and explore its components and functionality. …
Students are introduced to The Theater and explore its components and functionality. Students review the documentation for The Theater and an existing program to learn about its classes and methods, This lesson is aligned to CSTA standards.
Students discover the difference between comparing primitive values and object references. Students …
Students discover the difference between comparing primitive values and object references. Students learn that two object references are considered aliases when they both reference the same object and how to identify aliases or null values using the == and != operators. Students then revisit the Object class and override the equals() method to determine whether two objects of the class are equivalent. This lesson is aligned to CSTA standards.
Students have used if and if-else statements to execute blocks of code …
Students have used if and if-else statements to execute blocks of code based on a condition. In this lesson, students explore the functionality of nested if statements and learn to use these to test a combination of conditions. Students use nested if statements to write an algorithm to compare pairs of values in a 1D array. This lesson is aligned to CSTA standards.
Students revisit logical operators to explore the use of the && (and) …
Students revisit logical operators to explore the use of the && (and) and || (or) operators. Students use truth tables to evaluate Boolean expressions and learn about short-circuited evaluation. This lesson is aligned to CSTA standards.
Students learn about De Morgan's Laws and how they are applied to …
Students learn about De Morgan's Laws and how they are applied to Boolean expressions. Students explore how equivalent Boolean expressions evaluate to the same value in all cases. Students then use truth tables to evaluate compound Boolean expressions and prove De Morgan's Laws. This lesson is aligned to CSTA standards.
Students have written methods that require an object to be created before …
Students have written methods that require an object to be created before the method can be called. In this lesson, students revisit the static keyword and learn to write and call static methods. Students explore their functionality and identify scenarios for their use. Students then practice writing and calling static methods to solve problems. This lesson is aligned to CSTA standards.
Students explore the Math class to learn about its structure and available …
Students explore the Math class to learn about its structure and available methods. As students review the documentation for the Math class, they revisit the final keyword and learn how it can be used to prevent inheritance. Students practice using methods in the Math class to solve problems. This lesson is aligned to CSTA standards.
Students learn how casting operators can be used to temporarily convert a …
Students learn how casting operators can be used to temporarily convert a value to a different type. Students explore the effect of using the (int) and (double) casting operators on a value and expression. Students also use casting operators to round a double value to the nearest integer. This lesson is aligned to CSTA standards.
No restrictions on your remixing, redistributing, or making derivative works. Give credit to the author, as required.
Your remixing, redistributing, or making derivatives works comes with some restrictions, including how it is shared.
Your redistributing comes with some restrictions. Do not remix or make derivative works.
Most restrictive license type. Prohibits most uses, sharing, and any changes.
Copyrighted materials, available under Fair Use and the TEACH Act for US-based educators, or other custom arrangements. Go to the resource provider to see their individual restrictions.