Check for Mistakes in this Word Problem: target-leap
Directions: Write a function which takes in the target’s x-coordinate and makes a player leap by returning an x-coordinate that is double the original x-coordinate.
Contract and Purpose Statement
Every contract has three parts ...;
Takes the x-coordinate and returns a new one, multiplied by 2
Write some examples, then circle and label what changes ...(EXAMPLE (
Write the definition, giving variable names to all your input values ...(define (
leapx-coor)(* x 5))