CS 31600 - Homework Assignment 4

This assignment is your first assignment using ML. This assignment is due Tuesday, March 6.

Do the following Exercises from pages 84-85 from our textbook.

  • Exercise 4
  • Exercise 5
  • Exercise 6
  • Exercise 7
  • Exercise 8
  • Exercise 9
  • Exercise 10
  • Exercise 11
  • Exercise 13
Put your solutions to these problems in a file called CS316Hw4Surname.sml (where Surname is your last name). Be sure to test your solutions to these problems, but don't put your tests in the file CS316Hw4Surname.sml (I will provide my own tests of your solutions.). If you want, you can submit another file CS316Hw4Surname-tests.sml that contains your tests.

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

(*
   CS 31600
   Your Name Here
   Assignment 4

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

Turn in a zip file called CS316Hw4Surname.zip (where Surname is your last name) containing the ML file CS316Hw4Surname.sml (and, if you want, your file CS316Hw4Surname-tests.sml).

This assignment is due Tuesday, March 6.


Return to the main homework page.
Return to the CS 31600 home page.


compliments and criticisms