Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need to create a do-while loop in JAVA to determind wind chill. Here is a skeleton we are told to follow: ===================================== Print welcome Message

Need to create a do-while loop in JAVA to determind wind chill.

Here is a skeleton we are told to follow:

===================================== Print welcome Message Do Do Get Temperature and Unit While (Temp and Unit not valid) Do Get Wind Speed While (Wind Speed not valid) Calculate Wind Chill Display Wind Chill and message about weather Ask User if they want to calculate another Wind Chill Get user response While (User wants to continue) Print End Message 
===================================== 

And here are some modifications asked to have:

Will accept an input temperature of Celsius or Fahrenheit. For example, if the user types 90 F or 90 f, they are entering a number in Fahrenheit. If they type 90 C or 90 c, then the results doesn't matter, everyone would be dead.

Will perform input validation using the limits as noted before. Will loop until input is valid.

Will display the temperature in the appropriate unit as determined in step 1

Will display an additional statement for the weather. Something like, "Sure is cold today" or "Nice day for a walk" or "At least it's a dry heat". You choose the phrases and the boundaries. Make the program unique to you.

Will repeat the above steps as long as the user wants to continue.

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

More Books

Students also viewed these Databases questions

Question

understand the meaning of the terms discipline and grievance

Answered: 1 week ago