Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Program Write a program that will input temperatures for consecutive days. The program will store these values into an array and call a function
C++ Program
Write a program that will input temperatures for consecutive days. The program will store these values into an array and call a function thatwill return the average of the temperatures. It will also call a function thatwill return the highest temperature and a function that will return thelowest temperature. The user will input the number of temperatures to beread. There will be no more than 50 temperatures. Use typedef to declarethe array type. The average should be displayed to two decimal places. Sample Run: Please input an age from one to 100, put -99 to stop Please input an age from one to 100, put -99 to stop Please input an age from one to 100, put -99 to stop 17 Please input an age from one to 100, put -99 to stop -99 The number of people 5 years old is3 The number of people 8 years old is 1 The number of people 9 years old is 1 The number of people 10 years old is 1 The number of people 17 years old is 1 The number of people 20 years old is 2 The number of people 100 years old is 1Step 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