CMSC 471 - Fall 2008

Homework 2 - Part 1

This homework is worth 20 percent of Homework 2. Perform the following tasks, and turn it in printed out:

1. Visit our blackboard site and find the magic word. What is it? If you don't have blackboard access, email the instructor.


2. Install Lisp on your computer (preferable) or use linux.gl. Copy and paste the shell introduction to prove to me that you know how to start lisp.


3. What is the LISP line of code that gives the value of (5 + 7 - 2) * (4 + 6)? (hint: if the answer you get is not 100, you are wrong). For example, if I asked you to give the line of LISP that gives the value of (5+7), you should write down (+ 5 7).


4. Write the LISP line of code that takes a line of input from standard-in and prints "Hello [text input]".


5. Write a LISP function that takes a numerical value and adds 4 to it.