On this page:
1 Ht  DP exercises
2 Have a nice day!
3 Converting to Inches
4 Submission
6.12

Assignment 2: Simple functions

Due: Wednesday, September 12, 11:59:59 PM EST.

The following should be completed in cooperation with your assigned partner from lab 1. (Partner assignments are listed on Piazza.)

1 HtDP exercises

Complete HtDP exercises 11–20.

2 Have a nice day!

Design a function nice-day, which consumes a number size and produces an yellow circle representing a face with two oval eyes and a smile. The radius of the circle should be size pixels.

The result should look something like this:

3 Converting to Inches

Write a function, convert-to-inches, that takes as arguments a number of yards, feet, and inches (in that order) and converts to a total number of inches. For example, (convert-to-inches 4 1 3) would produce 159 inches.

4 Submission

Add a comment to top of your file that lists both partner names, separated by a comma.

Submit a single file named assign2.rkt to the submit server.

Only one partner needs to submit and should select their partner from the drop-down menu when submitting.