Programming Assignment 2
CS 31600
Programming Languages
Spring, 2021

This assignment makes use of the files contained in this zip file. This assignment is due Tuesday, February 23.

This assignment is your first assignment using ML.

Do the following Exercises from pages 84-85 of our textbook. A copy of these problems is included in the zip file.

Put your solutions to these problems in the file called hw2.sml. Be sure to test your solutions to these problems using the file hw2-tests.sml. When you run the tests your output should match the contents of the file hw2-tests-output.txt. You should test your code with additional tests, but don't put your tests in the file hw2.sml. If you want, you can submit another file hw2-my-tests.sml that contains your additional tests.

Make sure that your file hw2.sml begins with a ML comment block of the form

 (*
    CS 31600
    Hw 2
    Your_Name_Here
    Your_Email_Address_Here

    Any other comments that you want to make...
 *)

Turn in a zip file called CS316Hw2Surname.zip (where Surname is your last name) containing your version of hw2.sml (and, if you want to, hw2-my-tests.sml).

This assignment is due Tuesday, February 23.