Storyboard:
In this lab, our goal will be to use predicates paired with the “keep” block in order to keep items in a list that have specific characteristics. Then, we will run our initialized lists and use our new predicates together in order to answer questions such as: How many 12-letter words are in words list? How many 15-letter words are in words list? How many 17-letter words are in words list? and how many items in the numbers list are.
Logic:
- How many 12-letter words are in words list?
- 46 word are 12 letters long
- How many 15-letter words are in words list?
- 3 words are 15 letters long
- How many 17-letter words are in words list?
- There are no 17 letters long in the words list
- How many items in the numbers list are:
- Even?
- 2
- Between 25 and 75?
- Even numbers that are greater than zero?
- 1
- Even?
Problems: We could not figure out how to find the even numbers in the list. We had a lot of trouble completing this lab due to the lack of detailed instructions and our low level of coding experience.
Future Reference: In future labs, we hope to complete the program with a profound understanding of the intended functions and the job of each individual block. We will do this by reading the instructions thoroughly and insuring our understanding of the lab before starting.