Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Programming Activity Description: A climate analyzer measures snow fall on a regular basis. The information is then conveyed to the Weather Service in the form

Programming Activity Description:

A climate analyzer measures snow fall on a regular basis. The information is then conveyed to the Weather Service in the form of a report. Based on the values the analyzer conveys, extreme weather conditions, such as floods, hails, tornados, snow, freezing rain, heavy rain, etc. are reported to the general public.

If the snow reaches a limit of 3.5 inches, the reservoir in the immediate area will cause freezing. Hence, the snowfall must be measured every 30 minutes to keep track of drastic changes in the weather.

Write a program to get the user to input the measured snowfall. If the snowfall does not exceed the 3.5 inches, then the analyzer does nothing. Otherwise, wait for 30 minutes and a new value must be entered for the snowfall until it reaches a safe level.

You can name your program ClimateAnalyzer.java See sample output below.

Sample Output

>> Enter the snowfall in inches: 3.2

The snowfall is acceptable.

Check it again in 30 minutes.

>> Enter the snowfall in inches:3.125

The snowfall is acceptable.

Check it again in 30 minutes.

>> Enter the snowfall in inches:3.5

The snowfall is too high. Possibility of reservoir freezing.

Wait for 30 minutes and re-enter the snowfall.

Enter the snowfall in inches:3.675

The snowfall is too high. Possibility of reservoir freezing.

Wait for 30 minutes and re-enter the snowfall.

Enter the snowfall in inches:3.7

The snowfall is too high. Possibility of reservoir freezing.

Wait for 30 minutes and re-enter the snowfall.

Enter the snowfall in inches:2.3

The snowfall is acceptable.

Check it again in 30 minutes.

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

Students also viewed these Databases questions

Question

What is Working Capital ? Explain its types.

Answered: 1 week ago