Question: Using haskell platform please Write a function: grade :: StudentMark -> Char which returns a student's grade from a percentage mark. Marks of 70 or

 Using haskell platform please Write a function: grade :: StudentMark ->

Using haskell platform please

Write a function: grade :: StudentMark -> Char which returns a student's grade from a percentage mark. Marks of 70 or above get an A grade, marks between 60 and 69 get a B, between 50 and 59 a C, between 40 and 49 a D, and marks below 40 get an F. Write a function: capMark :: StudentMark -> Student Mark which caps the mark of a student to a maximum of 40. Write a function: grade :: StudentMark -> Char which returns a student's grade from a percentage mark. Marks of 70 or above get an A grade, marks between 60 and 69 get a B, between 50 and 59 a C, between 40 and 49 a D, and marks below 40 get an F. Write a function: capMark :: StudentMark -> Student Mark which caps the mark of a student to a maximum of 40

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!