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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started