Question: Programming Paradigms Haskell . Question 2 of 2: Rank Numbers: [50 marks] Write a function along with helper functions as needed, that takes three separate
Programming Paradigms
Haskell .
Question 2 of 2: Rank Numbers: [50 marks] Write a function along with helper functions as needed, that takes three separate numbers as parameters and returns a list with the elements sorted in ascending order.
Your function declaration would be of the form: rankNumbers :: Int -> Int -> Int -> [Int]
Please properly comment your code before submission.
Sample Test cases:
Test case 1:
rankNumbers 14 12 2 Output: [2, 12, 14]
Test case 2:
rankNumbers 4 12 2 Output: [2, 4, 12]
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
