Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

this program keeps track of the status of a themostat,including current tempratu

ID: 3617413 • Letter: T

Question

this program keeps track of the status of a themostat,including current temprature setting and display mode (Fahrenhiteor Celsius). the thermostat should be set to originally70 degrees Fahrenheit by default. it should include the following commands: D- Decrease Temp by one I- Increase temp by one. N- to enter new temp. F- to put it into Fahrenhite mode C- put into Celsius mode S- show current temp and what mode is it on. Q- to quit. these commands are for the user to use to make anaction, it should be repeated till the user types "Q" toquit. the following formula shoud be used to convert betweenCelsius and Fahrenheit. F= C *9/5 + 32 C= (F-32) * 5/9 The program should be working with classes with privatemembers variable to store the thermostat status. member functionsmust be used to set, update, or look at the status. the memberfunctions shouldn't do any input or output process, they can onlybe in main.. as for option "S" it's the only member finction thatshould directly do any input or output. Please help me with it ASAP, needed by Tuesday Mar15th . THANKS!! this program keeps track of the status of a themostat,including current temprature setting and display mode (Fahrenhiteor Celsius). the thermostat should be set to originally70 degrees Fahrenheit by default. it should include the following commands: D- Decrease Temp by one I- Increase temp by one. N- to enter new temp. F- to put it into Fahrenhite mode C- put into Celsius mode S- show current temp and what mode is it on. Q- to quit. these commands are for the user to use to make anaction, it should be repeated till the user types "Q" toquit. the following formula shoud be used to convert betweenCelsius and Fahrenheit. F= C *9/5 + 32 C= (F-32) * 5/9 The program should be working with classes with privatemembers variable to store the thermostat status. member functionsmust be used to set, update, or look at the status. the memberfunctions shouldn't do any input or output process, they can onlybe in main.. as for option "S" it's the only member finction thatshould directly do any input or output. Please help me with it ASAP, needed by Tuesday Mar15th . THANKS!!

Explanation / Answer

x.Xce="Courier">Please Rate :) Thanks #include #include class Thermostat {       private:               float temp;               char mode;       public:              Thermostat()              {                  temp = 70;                  mode = 'f';              }              void DecreaseTempByOne()              {                   temp = temp -1;               }              void IncreaseTempByOne()              {                     temp = temp + 1;               }              void ChangeTemp(float temp)              {                   temp = temp;              }                          void SetModeToCelsius()              {                   temp= (temp-32) * 5/9;                   mode = 'c';               }                            void SetModeToFahrenhite()              {                    temp= (temp *9/5) + 32;                    mode = 'f';               }                          void showTempAndMode()              {                   if(mode == 'c')                   {                        cout