CS 31600 - Homework Assignment 6

This assignment is due Thursday, April 12.

Do the following Exercises from pages 144-147 from our textbook. Be sure to read the explanation of the exercises given near the top of page 144. In particular, exercises up to number 24 should be written in terms of map, foldr, and foldl, while exercises 26 and 27 should not use those functions.

  • Exercise 4
  • Exercise 5
  • Exercise 6
  • Exercise 10
  • Exercise 14
  • Exercise 15
  • Exercise 16
  • Exercise 21
  • Exercise 23
  • Exercise 24
  • Exercise 26
  • Exercise 27

Put your solutions to these problems in a file called CS316Hw6Surname.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 CS316Hw6Surname.sml (I will provide my own tests of your solutions.). If you want, you can submit another file CS316Hw6Surname-tests.sml that contains your tests.

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

(*
   CS 31600
   Your Name Here
   Assignment 6

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

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

This assignment is due Thursday, April 12.


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


compliments and criticisms