Please enable JavaScript to use CodeHS

AP Computer Science A (Cortado)

Consumer Review Lab

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 2: Selection and Iteration in Cortado, Unit 4: Iteration in Nitro, and Unit 3: Methods in Mocha.

Lessons

11.1 Introduction

  • Consumer Review Lab Activity Guide
  • Review
  • Review Free Response
  • Check For Understanding

11.2 Sentiment Value and Star Ratings

  • Sentiment Value
  • Sentiment Value Free Response

11.3 Autogenerated Review

  • Autogenerate Review
  • Autogenerate Review Free Response

11.4 Create a Negative or Positive Review

  • Create a Negative or Positive Review
  • Create a Negative or Positive Review

11.5 Open Ended Activity!

  • Final Activity
  • Wrap Up

Courses that include this module