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/electric-bill/.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
@@ -34,7 +34,7 @@ The function should then `return` the watts as kilowatts rounded to 1 decimal pl
34
34
1.2
35
35
```
36
36
37
-
3. Get kwh value
37
+
3. Get kWh value
38
38
39
39
To be able to calculate the cost of running the electronics, your employer needs to know the power usage in kWh.
40
40
kWh stands for kilowatt-hour, where hour is a unit of time.
@@ -44,7 +44,7 @@ One hour is equal to 3600 seconds.
44
44
To calculate the kWh value, you must convert watts to kW, and then floor-divide the result by 3600.
45
45
46
46
Implement a function `get_kWh_value()` that accepts an integer which holds the number of watts.
47
-
The function should then `return` the watts as an integer.
47
+
The function should then `return` the kilowatt-hours as an integer.
48
48
49
49
```python
50
50
>>> get_kWh_value(5000000)
@@ -71,7 +71,7 @@ Your employer wants to know the cost of running the electronics.
71
71
The cost of running the electronics is the power used multiplied by the cost per kWh.
72
72
The power used is the power given divided by the calculated efficiency.
73
73
74
-
Implement a function `get_cost(<watts>,<power_factor>,<price>)` that accepts an integer that holds the number of watts, a float that has the power factor, and a float that holds the cost per kwh.
74
+
Implement a function `get_cost(<watts>,<power_factor>,<price>)` that accepts an integer that holds the number of watts, a float that has the power factor, and a float that holds the cost per kWh.
75
75
The function should then `return` the cost of running the electronics as a float.
0 commit comments