Match each prompt on the left to the Circle of Evaluation used to answer it.

We want to see the 8 lightest animals.

1

A

(count (first-n-rows animals-table 8) "weeks")

We want to see the animal who was adopted the quickest.

2

B

(first-n-rows (sort animals-table "weeks" false) 1)

We want to take the first 8 animals from the table and order them from heaviest to lightest.

3

C

(first-n-rows (sort animals-table "pounds" true) 8)

We want to know the count by weeks to adoption of the first 8 animals.

4

D

(sort (first-n-rows animals-table 8) "pounds" false)

E

(first-n-rows (sort animals-table "weeks" true) 1)

Translate each Circle of Evaluation into code and test it out in the Animals Starter File to confirm it does what you’d expect it to.

Hint: The Code for A is count​(​first-n-rows​(​animals-table, 8​), "weeks"​)

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.