Question: (1) Set the GHCi prompt to haskell$. What command did you use? (2) Calculate the floating point division of 12 to -5. What command did
(1) Set the GHCi prompt to haskell$. What command did you use?
(2) Calculate the floating point division of 12 to -5. What command did you use? What is the result?
(3) Calculate the integer division of 12 to -5. What command did you use? What is the result?
(4) Translate the following arithmetic and boolean expressions to Haskell, and compute the results.
(a) 34.56.2/5.8 (b) (true false) (true false)
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
