Question: Using Simple Haskell Programming and Lambda Calculus Problem 4. (8210 Points) a) Implement a function averageThree to return the average of three integers Next, use

 Using Simple Haskell Programming and Lambda Calculus Problem 4. (8210 Points)

Using Simple Haskell Programming and Lambda Calculus

Problem 4. (8210 Points) a) Implement a function averageThree to return the average of three integers Next, use averageThree to define another function howManyAboveAverage which returns how many of its three inputs are larger than their average value b) Use your averageThree function from above to write another function averageThreelnOne which receives the three input values as a triple rather than separately. c) Implement a function orderTriple which accept a triple of integers as input, and evaluates to a triple with the three integers appearing in ascending order. Use functions written for (a) and/or (b) as helper functions scoped inside the main function to do this

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!