Directions: Can you guess the contract for a function just by seeing how it’s used?
Try to match each Expression in the left column with a Contract in the right column
that describes the function being used. Some expressions or contracts
might not have a match.
(big-star "purple")
No matching answer
(big-star 25 "gold")
a; big-star : number string -> image
(message-cost 15)
c; message-cost : number -> number
(message-cost "where are you?")
b; message-cost : string -> number
(show-score "Red Sox" 6 "Cardinals" 4)
f(show-score "Red Sox" "Cardinals" 5 5)
No matching answer
(find-winner "Red Sox" 4 "Cardinals" 6)
No matching answer
(pick-flavor "vanilla" "oreo" "mint")
i; pick-flavor : string string string -> image
(prefer-flavor "lemon" "lime")
g; prefer-flavor : string string -> number