Question: 1) temperature.cpp Write a program to read a series of int numbers from the keyboard. Use an end-of-input signal (sentinel) value of 99. Calculate and
1) temperature.cpp Write a program to read a series of int numbers from the keyboard. Use an end-of-input signal (sentinel) value of 99. Calculate and print the average of the numbers between 32 and 212. Any number below 32 or above 212 (extremes) should not be included in the average calculations, but you should keep a count of them and print that at the end of the program. A run of the program should resemble the following: Enter a number (-99 to quit): 22 Enter a number (-99 to quit): 0 Enter a number (-99 to quit): 44 Enter a number (-99 to quit): 33 Enter a number (-99 to quit): -99 Average is: 38.5 There were 2 extreme values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
