Homework now due
No questions
are yet due.
Pending homework questions
20170911

Give two examples of Java syntactic
sugar.
20170929

How many partial functions are there from
{ Scissors, Paper, Rock, Spock, Lizard } ^{2}
to { Win, Lose } ?
Bonus: How many of these are fair and interesting?

Implement a function that takes a pair of real
numbers m and b and returns the linear
function mx+b.

What is wrong with the wording above?

Implement this in Haskell.

Implement this in Racket.

Implement this in Java.

A Collatz sequence starts with an arbitrary positive
integer n. The next number in the sequence is
 3n+1 if n is odd, and
 n/2 if n is even.
A sequence ends when n reaches 1 .

Write a Racket program that
repeatedly asks the user for a starting number and then
displays the resulting Collatz sequence.

Add a way for the user to terminate the program.
 Write a similar program
in Haskell.

Add test functions to the Racket
code by using
(require rackunit)
.
