Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program named TemperaturesComparison that allows a user to input 7 daily Celsius temperatures that must range from 0 100. If a temperature

Write a program named TemperaturesComparison that allows a user to input 7 daily Celsius temperatures that must range from 0 – 100. If a temperature is out of the range, require the user to re-enter it. Calculate and display the average, the maximum and minimum temperatures for the 7 days. Display the number of temperatures above the Average temperature. (Hint: to calculate the no of temperatures above, you will need to load the array first and then to check for the temperatures against the calculated average)

Step by Step Solution

3.39 Rating (158 Votes )

There are 3 Steps involved in it

Step: 1

First declare variables to store minimum maximum and average temperature And an array to store daily ... 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 Concepts Late Objects

Authors: Cay S. Horstmann

3rd Edition

1119186714, 978-1119186717

More Books

Students also viewed these Programming questions

Question

What is loss absorption potential?

Answered: 1 week ago

Question

What job protection is offered to veterans? AppendixLO1

Answered: 1 week ago

Question

Are the hours flexible or set?

Answered: 1 week ago