Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with this full Java Code. Prompt for and read seven temperatures from the console. These seven numbers can be any positive, 3.

I need help with this full Java Code.

image text in transcribed

image text in transcribed

Prompt for and read seven temperatures from the console. These seven numbers can be any positive, 3. Get input from the user. negative floating-point number or zero. Use a Scanner object for user input. Using the seven temperatures, calculate the following - number of temperatures at or above freezing, - number of temperatures below freezing, 4. Calculate statistics for the temperatures. - the highest temperature entered, - the lowest temperature entered, - the average temperature. Freezing is 32 degrees. Display the statistics using System.out. The format of the output is shown below. Sample input and output is displayed below. Rerun your 6. Test your application. application for each test case. Watch this video to see how the application must work (1:40min). 7. Comment your code. Add comments to the top of your source code file for your name and the date. Test Case \#1 Enter temperature \#1: 86.5 Enter temperature \#2: 0.0 Enter temperature \#3: 32.9 Enter temperature \#4: -15.3 Enter temperature \#5: 45.55 Enter temperature \#6: 84.2 Enter temperature \#7: -5.0 Number At or Above Freezing: 4 Number Below Freezing: 3 Highest temperature: 86.5 Lowest temperature: 15.3 Average temperature: 32.69 Test Case \#2 Enter temperature \#1: 45.6 Enter temperature \#2: 32.0 Enter temperature \#3: 23.99 Enter temperature \#4: 16.5 Enter temperature \#5: 56.12 Enter temperature \#6: 66.0 Enter temperature \#7: 13.9 Number At or Above Freezing: 4 Number Below Freezing: 3 Highest temperature: 66.0 Lowest temperature: 13.9 Average temperature: 36.30

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

Advances In Database Technology Edbt 88 International Conference On Extending Database Technology Venice Italy March 14 18 1988 Proceedings Lncs 303

Authors: Joachim W. Schmidt ,Stefano Ceri ,Michele Missikoff

1988th Edition

3540190740, 978-3540190745

More Books

Students also viewed these Databases questions

Question

The language { a ^ n b ^ n | n > = 0 } is:

Answered: 1 week ago

Question

Write the difference between sexual and asexual reproduction.

Answered: 1 week ago

Question

What your favourite topic in mathematics?

Answered: 1 week ago