Work excercises 34-38 in our text. Remember to use the Design Recipe and think about code reuse as you work through the exercises.
From now on, your programs should have the following sections as shown below using an example function that calculates the area of a rectangle:
; Your name, date, program name
; Number Number -> Number
; find the area of a rectangle with width w and height h
;given
; w = 10
; h = 5
;expected
; 50
(define (area-rect w h)
(* w h))
(check-expect (area-rect 10 30) 300)
Start on lab 2
cd
cd cs101
mkdir lab2
cd lab2
Your goals today!
convert
example, write Program 2b that will read a name from an input file
and write it to a scene
. Log out
When you are done, close DrRacket by choosing Quit
from the File menu, and then locate the logout option on the menu bar (lower right corner). Choose “Logout…” and follow any remaining prompts. Always remember to log out when you are done using the system, to ensure that no one else uses your account.