i'm new to C++ and i'm taking the C++ tutorial on the net lately. i have a question regarding switch case. i'm not really familiar with this function and it's quite confusing. can someone help me out on this question?
A wether station records the temperature every hour. Read the 24 temperatures recorded during one day-night period and output the low, high and average temperature for the period.Example:-
<20 (low temperature)
<40 (high temperature)
20-40 (average temperature)
this is only an example and it's not necessary to follow the temperature. any temperature will do.
i know how to use the switch case i'm confusing on how it can read the temperature during one day-night and output the low, high and average temperature? does it require loop?