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 SensorsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started