Comprueba si hay errores en este problema de palabras: offscreen?
Direcciones: Write a function, offscreen?, which returns true if Sam the butterfly’s x-coordinate is less than -50 or greater than 690.
Declaración de contrato y propósito
Todo contrato tiene 3 partes...
;offscreen?:number→boolean
; Given an x-coordinate, returns true if the coordinate is less than -50 or greater than 690
Ejemplos
Escribe algunos ejemplos, luego circula y marca los cambios...
(Ejemplo (offscreen?60)(true)
(Ejemplo (offscreen?800)(false)
Definición
Escribe la definición, nombres de variables a todos sus valores de entrada...
(define (off-screenx-coord)(and (< x-coord -50) (> x-coord 690)))