Please enable JavaScript to use CodeHS

AP® CS A Labs

Our AP® CS A Labs offer challenging projects in a variety of topics. All of these labs can be run in the web browser -- even on Chromebooks!

CodeHS also offers a complete, online course covering AP CS A and a review course to prepare students for the AP Test. The curriculum has been pre-approved by College Board's AP Course Audit as meeting or exceeding the curricular expectations colleges and universities have for this subject.

AP® CS A Course AP® CS A Review

College Board Labs

These labs were created by College Board and adapted by CodeHS.

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.

Topics: Strings, machine learning, sentiment analysis

Experience Level: Intermediate

Log In to Assign

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.

Topics: Strings, parsing, machine learning, pattern matching

Experience Level: Beginner

Log In to Assign

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.

Topics: Image processing, inheritance

Experience Level: Advanced

Log In to Assign

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!

Topics: GUIs, inheritance

Experience Level: Intermediate

Log In to Assign

Steganography

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.

Topics: GUIs, inheritance

Experience Level: Advanced

Log In to Assign

CodeHS Labs

These labs were created by the CodeHS curriculum team.

Battleship

In Battleship, you will use Object Oriented design to implement the board game Battleship.

Topics: Object oriented design, data structures

Experience Level: Intermediate

Log In to Assign

Pokémon Simulation

Topics: Object oriented design, data structures

Experience Level: Beginner

Log In to Assign

Blackjack

This module introduces basic data structures in Java including arrays, ArrayLists, 2 dimensional arrays and HashMaps. Data structures will be used to design the game of Blackjack.

Topics: Data structures

Experience Level: Intermediate

Log In to Assign

Mad Libs

In this project you'll write a program that allows users to create their own Mad Lib stories!

Topics: String processing, file IO

Experience Level: Intermediate

Log In to Assign