Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that will input temperatures for consecutive days. The program will store these values into an array and call a function that

   

Write a program that will input temperatures for consecutive days. The program will store these values into an array and call a function that will return the average of the temperatures. It will also call a function that will return the highest temperature and a function that will return the lowest temperature. The user will input the number of temperatures to be read. There will be no more than 50 temperatures. Use typedef to declare the array type. The average should be displayed to two decimal places. Sample Run: Please input the number of temperatures to be read 5 Input temperature 1: 68 Input temperature 2: 75 Input temperature 3: 36 Input temperature 4: 91 Input temperature 5: 84 The average temperature is 70.80. The highest temperature is 91.00 The lowest temperature is 36.00

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

Java An Introduction To Problem Solving And Programming

Authors: Walter Savitch

8th Edition

0134462033, 978-0134462035

More Books

Students also viewed these Algorithms questions

Question

6. Creating: Creating something new by combining different ideas.

Answered: 1 week ago

Question

what do you get when you cross two ducks with a match

Answered: 1 week ago