Please enable JavaScript to use CodeHS



AP Computer Science A Labs

This course is home to labs meant to prepare students for the AP CS A exam. Use this course to meet the 20 lab hours required for AP CS A, or as additional coursework for students once they've taken the exam. Labs include four College Board recommended labs with accompanying student guides and two CodeHS originals.

By the Numbers


Lessons 20
Videos 7
Exercises 40
Challenges 15
Offline Handouts 1

Units

Unit Description
Consumer Review: The persuasive power of words can be seen in a variety of places such as entertainment, news, social media, and even reviews and comments. Students learn about sentiment value and how this can be used to construct or modify a review to be more positive or negative using String manipulation. This lab can be used after Unit 4: Iteration in Nitro, and Unit 3 Methods in Mocha
Magpie: In the Magpie lab, you will use String methods and pattern matching to create a chat bot that you can have a conversation with. Students can complete this assignment after finishing Unit 5: Writing Classes in AP CS A (Nitro), or Unit 4: Classes and Objects in AP CS A (Mocha).
Picture Lab: In this lab, you will write methods to modify pictures. You'll explore the way pictures are stored in memory, nested loops, interfaces, and inheritance. Students can complete this assignment after finishing Unit 9: Inheritance in AP CS A (Nitro), or Unit 5: Data Structures in AP CS A (Mocha). This assignment does not align with College Board Standards, as it uses Interfaces.
Elevens: In the Elevens lab, you will use Object Oriented design to create a solitaire card game. At the end of the lab, you'll use a Graphical User Interface to play the game you create! Students can complete this assignment after finishing Unit 6: Data Structures in AP CS A (Mocha). This assignment does not align with College Board Standards, as abstract classes are not covered in AP CS A (Nitro).
Battleship: In Battleship, you will use Object Oriented design to implement the board game Battleship. Students can complete this assignment after finishing Unit 8: 2D Arrays in AP CS A (Nitro), or Unit 5: Data Structures in AP CS A (Mocha).
Pokemon Simulation: In this lab you'll create a a Pokémon battle game, using Object Oriented programming to implement Pokémon, trainers, and moves! Students can complete this assignment after finishing Unit 7: ArrayLists in AP CS A (Nitro), or Unit 5: Data Structures in AP CS A (Mocha).
Blackjack: This method will introduce basic data structures in Java including arrays, ArrayLists, 2 dimensional arrays and HashMaps. Data structures will be used to design larger applications. Students can complete this assignment after finishing Unit 7: ArrayLists in AP CS A (Nitro), or Unit 5: Data Structures in AP CS A (Mocha).
Mad Libs: In this project you'll write a program that allows users to create their own Mad Lib stories! Students can complete this assignment after finishing Unit 7: ArrayLists in AP CS A (Nitro), or Unit 5: Data Structures in AP CS A (Mocha).
Celebrity Lab: Students will discuss class design as it relates to the game Celebrity, where a person or team tries to guess the name of a celebrity from a given clue or set of clues. This lab includes inheritance as the basis for one of the activities, and also includes a Graphical User Interface. This lab can be completed after Unit 9 Inheritance (Nitro), or Unit 4 Classes and Object Oriented Programming (Mocha).
Steganography Lab: Steganography is the practice of concealing messages or information within other non-secret text or data. Students will use the same code from Picture Lab to explore the concepts of steganography and 2D arrays, hiding images or text inside of other images. This lab can be completed after Unit 8 2D Arrays in AP CS A Nitro, and after unit Unit 5 Data Structures in AP CS A Mocha.

More Links