Answered step by step
Verified Expert Solution
Question
1 Approved Answer
java please Problem Description and Given Info Write a program that will collect as input from the user, four temperature values (as double values); and
java please
Problem Description and Given Info Write a program that will collect as input from the user, four temperature values (as double values); and then compute and display the following statistical information regarding those temperature values: - minimum temperature - maximum temperature - average temperature - skew of the temperature values - range of the temperature values The range of the temperature values will be the difference between the maximum temperature and the minimum temperature The skew of the temperature values will be the deviation of the average from the midpoint between the minimum and maximum temperature values as a percentage of the range. For example, with an average temperature of 75.0 and a minimum temperature of 640 and a maximum temperature of 84.0, the skew will be 50%. This is because the difference between the average (75.0) and the midpoint between the minimum and maximum temperature values (74.0) is 1.0, which is 5.0% of the range (20.0). All output values will be double values, displayed with one decimal point of precision. Here are some examples of what the user should see when the program runs. Example 1 Enter first Temperature : 64 Enter second Temperature: 72 Enter third Temperature : 84 Enter fourth Temperature : 80 Min :64.0 Max :84.0 Average : 75.0 Skew :5.04 Range :20.0 Example 2 Enter first Temperature : 72 Entex second Temperature : 73 Enter third Temperature :85 Enter fourth Temperature : 74 Min : 72.0 Max : 85.0 Average : 76.0 Sken : 19.28 Range : 13.0 For the given inputs, make sure that your program output looks exactly like the example above (including speling captalization, punctuation, spaces, and decimal points) Hints and Helpful Info Hints and Helpful Info - Remember that there are Math. min and Math. max methods that can be used to compute the minimum and maximum of two values. Please watch this video to see a student complete this problem. Temperature Stats - Worked Example Video (30:53) 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