CS 291 Assignment #5

Due Friday, March 1st by 11:00pm
(Not accepted after March 3rd)

Introduction:

Homework assignments this semester will be posted online in Gradescope. You should each have received an email from Gradescope notifying you that you'd been added to CSCI 291. When you log in, assignments will be shown on your "dashboard". You can work on them as many times as you want before the deadline.

The goal of the fourth assignment is to get more practice with higher-order functions and with user-defined types. I show interactions with my solutions in GHCi, the interactive version of the Glasgow Haskell Compiler, but you're welcome to use Repl.it to implement your solutions. Once you've got a solution working in GHC or Repl.it, you can copy your code to the appropriate box on the assignment page.


Brad Richards, 2024