Please enable JavaScript to use CodeHS

AP Computer Science A (Cortado)

Data Set Lab

Students explore how real-world data sets can be modeled, processed, and analyzed through programming. In this lab, they begin by reflecting on data collection, privacy, and reliability, then move on to building a Cereal class to represent entries from a cereal data set. They practice reading data from files into an ArrayList, create objects to store and organize that data, and write methods to analyze nutritional values. Additionally, students have the chance to extend their work by using JavaFX library to validate data quality and visualize patterns.

This lab can be completed after Unit 4: Data Collections in Cortado, Unit 7: ArrayList in Nitro (with Using Text Files lesson from Cortado), Unit 5: Data Structures in Mocha (with Using Text Files lesson from Cortado).

Lessons

9.1 Activity 1 – Data, Data, Data!

  • Data, Data, Data! Part A
  • Activity 1A - Check for Understanding
  • Data, Data, Data! Part B
  • Activity 1B - Check for Understanding
  • Data, Data, Data! Part C

9.2 Activity 2 – Designing and Implementing Cereal Class

  • Designing and Implementing Cereal Class Part A
  • Designing and Implementing Cereal Class Part B
  • Activity 2B - Check for Understanding

9.3 Activity 3 - Cereal Analysis

  • Cereal Analysis Part A
  • Activity 3A - Check for Understanding
  • Cereal Analysis Part B
  • Cereal Analysis Part C
  • Cereal Analysis Part D
  • +2 more

9.4 Activity 4 - Personalized Data Analysis

  • Personalized Data Analysis Part A
  • Personalized Data Analysis Part B
  • Personalized Data Analysis -- Create Your Program
  • Personalized Data Analysis Part C

Courses that include this module