mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
535 B
15 lines
535 B
4 years ago
|
## 🌟 Ultra Venom Speed Control System (RGB)
|
||
|
|
||
|
### Instruction
|
||
|
|
||
|
You are writing the cooling controller of your new gaming PC. \
|
||
|
Declare a constant variable `fanSpeed` of the RPM _(revolutions per minute)_ of your
|
||
|
cooling fan.
|
||
|
|
||
|
Check the provided variable `temperature` to define the `fanSpeed` value:
|
||
|
|
||
|
- If the `temperature` is above `90` define it's value too `3200`
|
||
|
- If the `temperature` is above `70` define it's value too `1600`
|
||
|
- If the `temperature` is above `40` define it's value too `800`
|
||
|
- otherwhise set it's value to `0`
|