Question: could u do this haskell question For this assignment, include in your code the definitions of getInteger and getFloat from lecture. As discussed in lecture,

could u do this haskell question For this assignment, include in yourcould u do this haskell question

For this assignment, include in your code the definitions of getInteger and getFloat from lecture. As discussed in lecture, when entering the numbers, theuser (i.e., you!) should enter one number per line: otherwise, Haskell will likelyhave difficulty parsing them correctly. In the examples that follow, I've used colors to distinguish Haskell output (blue), user-generated input (orange), and the values returned by actions (black). 1. Write a Haskell program stats:: Io (Float, Float) that (i) prompts the user to enter three numbers, (ii) reads in three Floats, and then (iii) returns a pair containing the mean (i.e., numerical average)and median (i.e., middle value) of those three numbers. Reminder: maximumand minimum are useful built-in functions. For example, your program should have the following behavior: *Main > stats Please enter three numbers: 10 25 12 (15.666667, 12.0)

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!