;; The first three lines of this file were inserted by DrScheme. They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname 10.1.1) (read-case-sensitive #t) (teachpacks ((lib "convert.ss" "teachpack" "htdp") (lib "guess.ss" "teachpack" "htdp") (lib "master.ss" "teachpack" "htdp") (lib "draw.ss" "teachpack" "htdp") (lib "hangman.ss" "teachpack" "htdp"))) (htdp-settings #8(#t constructor repeating-decimal #f #t none #f ((lib "convert.ss" "teachpack" "htdp") (lib "guess.ss" "teachpack" "htdp") (lib "master.ss" "teachpack" "htdp") (lib "draw.ss" "teachpack" "htdp") (lib "hangman.ss" "teachpack" "htdp"))))) (define PAYPERHOUR 12) Data Definition A list-of-numbers is either 1. an empty list or 2. (cons n lon) where n is a number and lon is a list-of-numbers. Contract, Purpose, Header wage : number -> number Computes the wage given hours. (define (wage hours) (* PAYPERHOUR hours)) Contract, Purpose, Header hours->wages : list-of-numbers -> list-of-numbers Computes the wages (list-of-numbers) from alon. Template (define (hours->wages alon) (cond [(empty?) ...] [else ... (first alon) (rest alon) ...]))