Check for Mistakes in this Word Problem: offscreen?
Directions: Write a function, offscreen?, which returns true if Sam the butterfly’s x-coordinate is less than -50 or greater than 690.
Contract and Purpose Statement
Every contract has three parts ...;
Given an x-coordinate, returns true if the coordinate is less than -50 or greater than 690
Write some examples, then circle and label what changes ...(EXAMPLE (
Write the definition, giving variable names to all your input values ...(define (
off-screenx-coord)(and (< x-coord -50) (> x-coord 690)))