Guarded Equations
trackScore :: Float -> Float -> String
trackScore time avgTime -- equation sign moved to each expression below
| time < avgTime = "Great! Your time is " ++ show (avgTime - time) ++ "
seconds below average!"
| time > avgTime = "Your time is " ++ show (time - avgTime) ++ "
seconds above average."
| otherwise = "Your time is on par with the average time!"Last updated