Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java WindChill Part 2 Assignment Features input output declarations variables (use meaningfulNames) constants (use MEANINGFUL _NAMES) assignment statements decisions Modify your WindChill Program as follows

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Java WindChill Part 2 Assignment Features input output declarations variables (use meaningfulNames) constants (use MEANINGFUL _NAMES) assignment statements decisions Modify your WindChill Program as follows 1. 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 2. Will perform input validation using the limits noted belovw 3. Will display the temperature in the appropriate unit as determined in step 1 4. 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 Think of this program as a web page where you fill in all the input boxes and click submit. After you click submit, the program checks for errors. If there are none, it calculates and displays the results Notes 1. You will need an error counter that keeps track of how many input fields fail validation. It then uses that counter to determine the results to display. (A Wind Chill factor if zero errors) or a Try Again Method (if any errors) 2. It will be assumed that the user will type in the information in the correct format. A number followed by the unit, followed by a number 3. The limits for each input are a. The temperature must be between -40 degrees Fahrenheit and 50 degrees Fahrenheit b. The unit must be either F or C (upper or lower case) c. The wind speed must be between 0 and 50 4. You need to decide if and when you need to convert between Celsius and Fahrenheit Tro = 1.8 Tc0 + 32 Hand in: Soft Copy of WindChill.java

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

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions