Write a Lisp program/function called average_temperatures that returns a list of two elements: the first is the average of the boiling temperatures and second is the average of the freezing temperatures. Note: You will use Temperature >100 for boiling and Temperature <0 for freezing
> (average_temperatures '( -15 56 101 100 0 -33 0 112 0 95 145 ))
In order to simplify the tasks, you may write three functions intead of one.
2.1) average_boiling returns the average of boiling temperatures (20 points)
2.2) average_freezing returns te average of freezing temperatures (20 points)
2.1) average_boiling_freezing (just to combine both results), (10 points)
Please put this in a .txt file and i prefer the use of rest, first etc. versus car, cdr if possible.
I use Lisp Works if that matters.
can pay 15$