
The Situation
A team of environmental scientists has placed sensors along a river to measure the amount of plastic waste collected at different locations.
Each number represents the number of plastic items collected by one sensor station.
The team wants to know:
How many stations collected more than 12 plastic items?
Example Data
[8, 15, 6, 19, 12]
The stations with more than 12 items collected:
15, 19
Result: 2
Your Turn
Dataset A
[14, 7, 18, 11, 23, 5, 16, 9, 12, 20, 4]
How many values are greater than 12?
Dataset B
[6, 13, 10, 21, 8, 17, 12, 3, 15, 11, 19]
How many values are greater than 12?
Programming Goal
Create a program that checks every value in the list and outputs the total number of values greater than 12.
style this question adventure time quest. Slide 16:9 image size