Skip to content

Commit 322ee64

Browse files
authored
Merge pull request #1131 from thepabloaguilar/fix-temperature-hint
Fix hints for temperature concept
2 parents 74b5163 + 7905b8e commit 322ee64

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Hints
22

3-
## Convert Farenheit to Celsius
3+
## 1. Convert Fahrenheit to Celsius
44

5-
- Temperature in degrees Celsius is defined as: T(°F) = T(°C) × 1.8 + 32
6-
- The temperature in Farenheit is provided as an `Integer` and must return Celsius as a `Float`.
5+
- Temperature in degrees Celsius is defined as: T(°C) = (T(°F) - 32) / 1.8
6+
- The temperature in Fahrenheit is provided as an `Integer` and must return Celsius as a `Float`.
77
The `fromInteger` function will come in handy.
88

9-
## Convert Celsius to Farenheit
9+
## 2. Convert Celsius to Fahrenheit
1010

11-
- Temperature in degrees Fahrenheit is defined as: T(°C) = (T(°F) - 32) / 1.8
12-
- The temperature in Celcius is provided as a `Float` and must return Farenheit rounded up to the closest `Integer`.
11+
- Temperature in degrees Fahrenheit is defined as: T(°F) = T(°C) × 1.8 + 32
12+
- The temperature in Celcius is provided as a `Float` and must return Fahrenheit rounded up to the closest `Integer`.
1313
The `ceiling` function will come in handy.

exercises/concept/temperature/.docs/instructions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ You are part of a firefighter organization made of international volunteers.
44
Due to the international nature of the team, valuable time has been wasted over the last few calls translating between Fahrenheit and Celcius while estimating the temperature inside the burning buildings.
55
To save time, and people, you decide to create a program to automatically convert between Fahrenheit and Celsius for your international team.
66

7-
## 1. Convert Farenheit to Celsius
7+
## 1. Convert Fahrenheit to Celsius
88

99
Implement the `tempToC` function to convert an `Integer` temperature in Fahrenheit to its equivalent `Float` in Celsius rounded to the nearest hundredth.
1010
Temperature in degrees Celsius is defined as: T(°C) = (T(°F) - 32) / 1.8.
@@ -14,11 +14,11 @@ Temperature in degrees Celsius is defined as: T(°C) = (T(°F) - 32) / 1.8.
1414
0.00
1515
```
1616

17-
## 2. Convert Celsius to Farenheit
17+
## 2. Convert Celsius to Fahrenheit
1818

1919
Implement the `tempToF` function to convert a `Float` temperature in Celsius to its equivalent in Fahrenheit.
2020
For safety reasons, **round up** the result to the **next-highest** `Integer`.
21-
Temperature in degrees Farenheit is defined as: T(°F) = T(°C) × 1.8 + 32.
21+
Temperature in degrees Fahrenheit is defined as: T(°F) = T(°C) × 1.8 + 32.
2222

2323
```Haskell
2424
> tempToF 4

0 commit comments

Comments
 (0)