Match each data science problem below to its corresponding purpose statement.

Data Science Problem Purpose Statement

Steve wants a function that will look at an animal from the animals-table, and return true if it’s older than six.

1

A

Consume a Row, and check if species == "cat" and age < 1

Mandolin wants a function that will draw a red star for each animal in the shelter. The size of the star should be a measure of how many pounds the animal weighs.

2

B

Consume a Row, and produce a solid red star using pounds as the radius.

Tara wants to see a table of ONLY cats, rabbits, and tarantulas. She needs a function that will check if an animal is one of those species.

3

C

Consume a Row, and check if age > 6

Bharti is looking for kittens, so she wants a function that only returns true if the animal is a cat AND is less than 1 year old.

4

D

Consume a Row, and check if species == "cat", species == "rabbit", or species == "tarantula"

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927). CCbadge Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.