Question: Create addition and subtraction functions for the celsius and fahrenheit temperature types introduced in Sidebar 11.3. To allow the two scales to be mixed, you
Create addition and subtraction functions for the celsius and fahrenheit temperature types introduced in Sidebar 11.3. To allow the two scales to be mixed, you should also define conversion functions ct_of_ft : fahrenheit_temp -> celsius_temp and ft_of_ct : celsius_temp -> fahrenheit_temp. Your conversions should round to the nearest degree (half degrees round up).
Step by Step Solution
3.49 Rating (176 Votes )
There are 3 Steps involved in it
let round x intoffloat floor x 05 let ... View full answer
Get step-by-step solutions from verified subject matter experts
