Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 -> 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 40Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started