Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedC++ 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 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions

Question

Date Account Titles and Explanation Debit Credit

Answered: 1 week ago