Programming:

Write a function that counts the number of symbols at the top level
of a list l.
Example:

(countsymbols '(a b 7 (peas) #f carrots)) = 3

You are given as input a list of items, some of which are numbers
and some of which may not be numbers. Write function(s) to compute the
average of the numbers in the list (at top level).

Write function(s) that count the number of "interesting" symbols
in a list lst, given a list int of interesting symbols.
It should be (define (int-count int lst) ...), e.g.:

(int-count '(big dog) '(a big dog has a big appetite)) = 3

Write a function as follows: The inputs are a list, lst,
of positive integers and a positive nonzero integer n. The output
should be a list containing those elements that are exactly divisible
by n. Example:

(divideby '(3 4 6 17 21 0) 3) = (3 6 21 0)

Write a function as follows: The input is a list, lst,
consisting of a student's last name followed by a series of sublists,
(item points). The function should return the sum of the points.
Example:

(addpoints '(smith (exam 33) (lab 40) (extra 10))) = 83

Write a function as follows: The input is a list of
sublists; each sublist has the form (department sales costs).
Profit for a department is sales minus costs. Find the total
profit across all departments in the list.
Example:

(profit '((garden 15000 10000) (kitchen 2000 1000)))
= 6000

Write a function as follows: The input is an
association list of sublists containing a name and a phone
number. The output should be an association list containing
sublists containing a phone number followed by a name.
Example:

Write a function (points lst pts) as follows:
lst is a list of symbols, and pts gives the number of points
for each kind of symbol. Compute the total number of points
for all the symbols in lst.
Example:

Write a function (sine x) to compute sine using this series.
You may not use the functions expt or factorial; instead,
write a tail-recursive auxiliary function to compute each
term of the series from the previous term and add it to the
sum. Stop after the 21st power of x. Hint: write down how
each term of the series differs from the previous term.

Write a function (select major year lst) as follows:
lst is a list of sublists of the form (name major birth-year)
and year is the current year. The function should return a
list of sublists of the form (name age) giving the name and
age of each person with the specified major.
Example: