Question: Write the classes and the functions needed to complete the weather class in C++ Function Specifications are below..... User (e.g. The City) will be able
Write the classes and the functions needed to complete the "weather class" in C++

Function Specifications are below.....
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).
A motion detector on the smart streetlight will pick up walking pedestrians or moving vehicles that will tell the smart streetlight, whether or not the lights should be on. If there is no motion detected within a certain given amount of time, the light will dim. Once in dim mode, the light will not be using up as much energy as before. If there is motion detected the LED will be on to the brightest intensity.
The street light will also be able to help the traffic run smoother. With traffic monitoring sensors it can monitor how the traffic flows throughout the day. The data collected can then be used to send a signal to nearby traffic lights. The traffic lights will know which streets are the busiest and therefore change light color accordingly.
As aforementioned, the lights will have the ability to use motion sensors to turn on when someone is passing by. Therefore, another thing we want to add to this streetlight is to have the ability to flicker red when an ambulance or fire truck is on its way about to pass through. This is very important in a busy city place so that an emergency vehicle can get to its destination as quick and safely as possible.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
