Scheme Exercises

back to exercise list       previous     next

Group:     Exercise: 15/48 

Three-part function:  A function with three different behaviors

Create a function three(w) that has the value -1 if w < 0, and has the value 3.5 if 0 <= w and w <= 4, and has the value 7 otherwise.