Students explore the scope of variables in a program and discover that …
Students explore the scope of variables in a program and discover that the local variable is used when it has the same name as an instance variable. Students learn to use the this keyword to refer to the current object in constructors and methods. 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 create a store management system for a business or service. Students choose the objects for their business that represent something they are interested in or meaningful to them. After brainstorming and planning, students develop their programs to create their store management system. This lesson is aligned to CSTA standards.
Students designed classes to represent objects in a business of their choice …
Students designed classes to represent objects in a business of their choice to create a store management program. Students decide how users interact with their program and use the Scanner class to receive user input. 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 Classes …
Students practice developing solutions to AP CSA FRQs on a mock Classes and Objects 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 expand their knowledge of data types to learn about the int …
Students expand their knowledge of data types to learn about the int and double types and differentiate between primitive and reference variables. Students explore how variables are declared, initialized, and used as they write and modify code segments and identify the current value stored in a variable. This lesson is aligned to CSTA standards.
Students discover how arithmetic and compound assignment operators function in Java with …
Students discover how arithmetic and compound assignment operators function in Java with different data types. Students practice evaluating expressions and explore scenarios that result in errors or unexpected results. This lesson is aligned to CSTA standards.
In the previous unit, students created subclasses of the Painter class and …
In the previous unit, students created subclasses of the Painter class and objects of different types. Students revisit classes and objects to learn how to design classes and identify appropriate attributes for these classes. Students define instance variables to represent these attributes while exploring encapsulation and learn the difference between public and private access. This lesson is aligned to CSTA standards.
Students revisit constructors to identify the need for parameterized constructors and learn …
Students revisit constructors to identify the need for parameterized constructors and learn how to implement these in a class. In the process, students differentiate between actual and formal parameters and explore how constructor calls function in programs. This lesson is aligned to CSTA standards.
Students learn how to obtain user input using the Scanner class. Additionally, …
Students learn how to obtain user input using the Scanner class. Additionally, they discover the NullPointerException, its cause, and strategies for debugging this error. This lesson is aligned to CSTA standards.
Students learned about inheritance in the previous unit to create subclasses of …
Students learned about inheritance in the previous unit to create subclasses of the Painter class. In this lesson, students revisit inheritance to learn about using the DRY principle to refactor redundant code. Students also learn about the Object class and deepen their understanding of inheritance. This lesson is aligned to CSTA standards.
Students discover the need for accessor methods to obtain the values stored …
Students discover the need for accessor methods to obtain the values stored in the instance variables of a class. Students review the components of a method signature and how methods return values. Students practice writing accessor methods in the Project Mercury Pastries Food Truck classes and calling them within expressions. This lesson is aligned to CSTA standards.
Students discover the need for mutator methods to change the values stored …
Students discover the need for mutator methods to change the values stored in the instance variables of a class. Students also revisit the void keyword and recall edge cases. Students practice writing and calling mutator methods for their classes. This lesson is aligned to CSTA standards.
Students have learned to obtain information about an object using its accessor …
Students have learned to obtain information about an object using its accessor methods. In this lesson, students discover the need for an easier way to get the state of an object. Students revisit the Object class and learn how to override its toString() method to display object information to the console. Students also learn to format output using escape sequences and concatenating instance variables and Strings. This lesson is aligned to CSTA standards.
Students learn about nested loops and practice tracing these to explore their …
Students learn about nested loops and practice tracing these to explore their functionality. Using nested loops, students develop an algorithm to determine whether there are duplicate elements in a 1D array. Students plan their algorithms using manipulatives to identify the steps to solve the problem and write pseudocode before implementing them in Java. 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 store and analyze data from a text file for a topic that they are interested in or meaningful to them. Students choose a user scenario and data they want to analyze to identify a solution to address a user's needs. After brainstorming and planning, students develop their programs. This lesson is aligned to CSTA standards.
Students identified the data for their topic of interest and read this …
Students identified the data for their topic of interest and read this data into a 1D array. Students continue to develop their projects using their data to implement standard algorithms to analyze the data. 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 have used variables to store literal values and references to objects. …
Students have used variables to store literal values and references to objects. Software engineers often need to store multiple values of the same type in a program. In this lesson, students learn how to use one-dimensional (1D) arrays to store multiple values that can be referenced with one variable. Students practice creating arrays using the new keyword and with initializer lists and obtaining the size of the array. 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.