Dana Vrajitoru
C311 Programming Languages
C311 Homework 1
Due Date: Wednesday, January 18, 2023.
Complete Lab 1 before this homework.
Note. The results of the entire exercise below should be
saved in one file with the extension .el.
Ex. 1. Write a Lisp expression for each of the following
expressions:
- log(15.0) * (3 + 18 * 2)
- the maximum of the numbers 11, 37, 21, 15, 8 as a function call.
- test if 3*3.14 is greater than or equal to 15/2.
- a symbolic list containing 5 names of trees.
- the first element of the list above by a function call
- a function call resulting in a string telling us how many minutes
are in a day. The minutes should be provided as an expression
multiplying the number of hours in a day by the value 60.
Turn the Lisp Interactive mode on and evaluate each of the expressions.
Upload to Canvas: under Assignments, Homework 1: the Lisp
file created for this homework and the one created
for the lab.