For each scenario below, draw the Circle of Evaluation and then use it to write the code.

When you’re done, test your code out in the Animals Starter File and make sure it does what you’d expect it to.

# count :: Table, String -> Table

# first-n-rows :: Table, Number -> Table

# sort :: Table, String, Boolean -> Table

1 We want to see the 10 animals who were adopted the quickest.

Circle of Evaluation:

code:

2 We want to see the heaviest animal.

Circle of Evaluation:

code:

3 We want to take the first 8 animals from the table and put them in alphabetical order (by name).

Circle of Evaluation:

code:

4 You notice that the lightest 16 animals weigh under 10 pounds and you want to know the count (by species) of those animals.

Circle of Evaluation:

code:

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.