-->
当前位置:首页 > 题库

PROGRAMMING:Remote lighting experiment of Internet of things

Luz5年前 (2021-05-10)题库412
Remote lighting an LED lamp is the most basic experiment of the Internet of things. If the position of the lamp is represented by the subordinate of a point, please design a point class and carry out the programming experiment for this class. When the position coordinates and switch status are input, the on or off status of the LED lamp will be output.
###Input format:
Coordinates and switch status, such as x y true
###Output format:
The switch status of the lamp is on or off
###Input example:
Here is a set of inputs. For example:
```in
1 1 false
```
###Output example:
The corresponding output is given here. For example:
```out
off
```







answer:If there is no answer, please comment