Write a well-structured paragraph (or more, if you think you have more to say) about one of the following topics:
Do but don't turn in the following exercises. Some of these will be on the final exam, so you can count this as studying for the final.
youngest
, which takes a non-empty list of persons and
returns the youngest one.
add
function without using the built-in + operator.
You may, however, use the built-in add1
function,
which adds 1. Hint: Treat one of the parameters,
n
, as a natural number; the other, x
,
should be considered as just a number.)
sort
function. To test
your understanding, try problem 12.2.1.
print-stars
that takes in a natural number and displays that many asterisks,
one after another on the same line. (This will use the built-in
display
function and the begin
form.)
count-calls
and reset
. Each function
takes no arguments (which means you need to be in Advanced Student
mode to write them). reset
returns nothing at all,
while count-calls
returns how many times it has been
called since the last time reset
was called. (Such a
pair of functions might be used, for example, in a hit counter for
a Web page.) Hint: Use a global variable, which
both functions can modify (using set!
), to keep track
of the count. You may also need begin
.