Hi everybody, I have a problem. I'm new to haskell and
I have to write a function that takes the following
list and finds the average by using recursion and
adding the numbers together. I'm completely STUCK!
Thank you. 

> sales :: Int -> Float
> sales n
>       | n == 0 = 23.89
>       | n == 1 = 89.30
>       | n == 2 = 203.59
>       | n == 3 = 157.67
>       | n == 4 = 58.35
>       | n == 5 = 78.75
>       | n == 6 = 199.35
>       | n == 7 = 359.25
>       | n == 8 = 539.67
>       | n == 9 = 259.58
>       | n > 9 && n < 52 = 350.00


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

Reply via email to