Question: Write an if / else if / else statement that increments coldDays if currentTemperature is less than 1 0 deg C , increments moderateDays
Write an ifelse ifelse statement that increments coldDays if currentTemperature is less than deg C increments moderateDays if currentTemperature is between deg C and deg C and increments hotDays if currentTemperature is above deg C Assume coldDays, moderateDays, hotDays, and currentTemperature are all declared and initialized variables.
Additionally, if the weather is very cold C or less print a message stating "Warning! Chance of icy roads, drive carefully.". If the weather is very hot C or more print a message stating "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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
