Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions

Question

=+Trainers from headquarters? Local trainers? Independent trainers?

Answered: 1 week ago