Question: Write the complete weather class (in C++) User (e.g. The City) will be able to use this code on smart streetlights that gather information from
Write the complete "weather" class (in C++)

User (e.g. The City) will be able to use this code on smart streetlights that gather information from external sensors (not provided). The program will then analyze the information and make appropriate changes to the smart streetlights LED light bulbs.
The program will have three settings for the LEDs:
1) light on
2) light off
3) light dim
These settings will depend on an analysis of the information the streetlight will be able to pick up with the following sensors: light, weather (humidity and temperature) and motion.
Sensors that can detect humidity and temperature will be able to analyze and differentiate various weather conditions. A light sensor will determine the setting for the LED accordingly. The data picked up from these sensors will be stored and sent to the location (i.e. city).
Streetlight Controller GPS Streetlight +getweather: double +getLightO: double geTrafficO: double getStreetLight0: double setCommunication: void Light Weather Communication Traffic getlight0: double Motion Humidity Temperature Sensors Streetlight Controller GPS Streetlight +getweather: double +getLightO: double geTrafficO: double getStreetLight0: double setCommunication: void Light Weather Communication Traffic getlight0: double Motion Humidity Temperature Sensors
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
