in c++ write a function to only decreases ambient temperature when a switch is enabled (two way switch on and off) else set the temperature to next room ambient temperature write a function to only decreases ambient temperature when a switch is enabled (two way switch on and off) else set the temperature to next room ambient temperature.