Name: _________________________________
Given this main program:
int main() { float temperature; while (cin >> temperature) { printTempOpinion(temperature); } return 0; }
Write the function printTempOpinion
which
prints "Cold" on cout
if the temperature is below 70, "OK" if the
temperature is in the range 70-80, and "Hot" if the
temperature is above 80.