Please enable JavaScript to use CodeHS

AP Computer Science A Labs

Mad Libs Lab

Students learn how to write a program that allows users to create their own Mad Lib stories!

Students can complete this assignment after finishing Unit 4: Data Collections in Cortado, Unit 7: ArrayLists in AP CS A (Nitro), and Unit 5: Data Structures in AP CS A (Mocha).

Lessons

15.1 Mad Libs

  • Mad Libs Demo
  • Collecting the Placeholders
  • Getting User Input
  • Replacing a Placeholder
  • Generating the Mad Lib
  • +2 more

Courses that include this module