Question: please help me to validate the following if ( ( currentTemperature < 1 0 ) && ( currentTemperature > 0 ) ) { coldDays +

please help me to validate the following if ((currentTemperature <10) && (currentTemperature >0)){
coldDays +=1;}
else if (currentTemperature <=0){
coldDays +=1;
cout << "Warning! Chance of icy roads, drive carefully.";}
if ((currentTemperature >=10) && (currentTemperature <=25)){
moderateDays +=1;}
if ((currentTemperature >=25) && (currentTemperature <=30)){
hotDays +=1;}
else if (currentTemperature >=30){
hotDays +=1;
cout << "Warning! Hot weather, stay hydrated and stay indoors during the hottest hours.";}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!