Referenced from lesson Solving Word Problems

Directions: For each pairs of Examples below, decide whether the two examples have the same contract. If they do, fill in the contract in the space provided. If not, write a few words explaining why.

  1. :: ->
    examples: mystery(30) is 30 * 50 mystery(10) is text("Welcome!", 10, "darkgreen") end

  2. :: ->
    examples: mystery(30, 40) is 40 - (2 * 30) mystery(10, 15) is 15 - (2 * 10) end

  3. :: ->
    examples: mystery("New York") is text("New York", 20, "red") mystery(20) is text("New York", 20, "red") end

  4. :: ->
    examples: mystery("green", 32) is circle(32, "outline", "green") mystery(18, "green") is circle(18, "outline", "green") end

  5. :: ->
    examples: mystery(6, 9, 10) is 6 / (9 + 10) mystery(3, 7) is 3 / (7 + 10) end

  6. :: ->
    examples: mystery("red", "blue") is text("blue", 25, "red") mystery("purple", "Go Team!") is text("Go Team!", 25, "purple") end

  7. :: ->
    examples: mystery(circle(55, "outline", "black"), 12) is scale(12, circle(55, "outline", "black")) mystery(rectangle(24, 32, "outline", "purple"), 5) is scale(5, rectangle(24, 32, "outline", "purple")) end

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, and 1738598). CCbadge Bootstrap:Algebra by Emmanuel Schanzer, Jen Poole, Ed Campos Jr, Flannery Denny, and Dorai Sitaram is licensed under a Creative Commons 4.0 Unported License. Based on a work at www.BootstrapWorld.org. Permissions beyond the scope of this license may be available by contacting schanzer@BootstrapWorld.org.