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 ...

;offscreen?:number→boolean

; Given an x-coordinate, returns true if the coordinate is less than -50 or greater than 690

Examples

Write some examples, then circle and label what changes ...

(EXAMPLE (offscreen?60)(true)

(EXAMPLE (offscreen?800)(false)

Definition

Write the definition, giving variable names to all your input values ...

(define (off-screenx-coord)(and (< x-coord -50) (> x-coord 690)))