hurts?: boolean(hit) boolean(hard) -> boolean
It only hurts if you get hit and the hit was hard.
care: boolean(injured) number(blood) -> string
(red-blue-1 n)
gives "red" if the number is less than 30,
otherwise "blue".(red-blue-2 xxx)
gives "red" 30% of the time and "blue" 70% of
the time.(define (scrunch x)
(cond [(< x 10) 0]
[else (/ x 2)]))
Give 3 examples what it does.
(scrunch-three 5 12 40) => 26
(sum-points "saw" "it" "workhorse" "betadyne") => 48
Count the number of people who wake up before cutoff-time
.
(early-wake-up cutoff-time
person-1-time
person-2-time
person-3-time)