Advertisement
Guest User

Untitled

a guest
Apr 21st, 2015
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. exam exercise1 exercise2 bonus exampoints = if exercise1 && exercise2
  2.                             then rawexam (bonus + exampoints)
  3.                             else rawexam exampoints
  4.  
  5. rawexam points
  6.     | points < 50   = 5.0
  7.     | points < 54   = 4.0
  8.     | points < 58   = 3.7
  9.     | points < 62   = 3.3
  10.     | points < 66   = 3.0
  11.     | points < 70   = 2.7
  12.     | points < 74   = 2.3
  13.     | points < 78   = 2.0
  14.     | points < 82   = 1.7
  15.     | points < 86   = 1.3
  16.     | points <= 120 = 1.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement