You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/concept/temperature/.docs/instructions.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ You are part of a firefighter organization made of international volunteers.
4
4
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.
5
5
To save time, and people, you decide to create a program to automatically convert between Fahrenheit and Celsius for your international team.
6
6
7
-
## 1. Convert Farenheit to Celsius
7
+
## 1. Convert Fahrenheit to Celsius
8
8
9
9
Implement the `tempToC` function to convert an `Integer` temperature in Fahrenheit to its equivalent `Float` in Celsius rounded to the nearest hundredth.
10
10
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.
14
14
0.00
15
15
```
16
16
17
-
## 2. Convert Celsius to Farenheit
17
+
## 2. Convert Celsius to Fahrenheit
18
18
19
19
Implement the `tempToF` function to convert a `Float` temperature in Celsius to its equivalent in Fahrenheit.
20
20
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.
0 commit comments