CS 5010: Problem Set 01: Hello, World!

Out: Monday, September 12, 2016 (revised: Sun Sep 11 22:31:44 2016)

Due: Monday, September 19, 2016 at 600pm local time

The goal of this problem set is to give you exercise with the systems we will use in CS 5010, and to make sure you know how to commit your solutions to the CCS github.

Submit your homework following the instructions in Submitting Your Homework, and include the required deliverables.

As of this writing, we do not know whether your private repositories will be set up in time for this problem set. If we set up your private repository, deposit your work there, following the directions in Submitting Your Homework. Otherwise, set up a public repository called pdp-YOURNAME, where YOURNAME is your CCIS login name, in your CCIS github repository, and deposit your work in a folder called set01 there.

We will check to see whether you have provided all the deliverable functions for this problem set, but the problem set will otherwise be ungraded.

You must use the HtDP Beginning Student Language to solve the problems.

For these problems, download a copy of extras.rkt and put it in the folder with your solutions. Then import this library by including the line

(require "extras.rkt")
at the top of your file with the other requires. Then, for each problem, put in lines that say
(provide function)
for each deliverable function. Also, include a line calling check-location to check to see if your file is correctly named and in the right place in your repository. Thus, for problem 1, the top of your file should say
(require rackunit)
(require "extras.rkt")
(check-location "01" "q1.rkt")

(provide distance-to-origin) 

This will allow our testing framework to import your file and check to see that you've provided all the deliverable functions.

Remember that you must follow the design recipe. Your deliverables include the data definitions (including interpretation and templates), contract and purpose header, code, and tests. Be sure to sync your work and fill out a Work Session Report at the end of every work session. Use the Work Session Report that is found here

Do the following exercises from HtDP/2e. These should all be easy, but be sure to include all of the items in the design recipe. If there are no data definitions necessary, then say so in your file.

Note: the numbers of these exercises in HtDP2e may change.

  1. Exercise 11. Name this function distance-to-origin.
  2. Exercise 14 (string-last).
  3. Exercise 16 (image-area).
  4. Exercise 19 (string-insert).
  5. Exercise 20 (string-delete).

Last modified: Wed Sep 14 10:32:44 Eastern Daylight Time 2016