Question: Improve your solution to EXERCISE 1.2.25 by adding code to check that the values of the command-line arguments fall within the ranges of validity of
Improve your solution to EXERCISE 1.2.25 by adding code to check that the values of the command-line arguments fall within the ranges of validity of the formula, and by also adding code to print out an error message if that is not the case.

1.2.25 Wind chill. Given the temperature T (in degrees Fahrenheit) and the wind speed v (in miles per hour), the National Weather Service defines the effective tem- perature (the wind chill) as follows: w = 35.74 +0.6215 T+ (0.4275 T-35.75) v0.16 Write a program that takes two double command-line arguments temperature and velocity and prints the wind chill. Use Math.pow(a, b) to compute a. Note: The formula is not valid if T' is larger than 50 in absolute value or if v is larger than 120 or less than 3 (you may assume that the values you get are in that range).
Step by Step Solution
3.37 Rating (169 Votes )
There are 3 Steps involved in it
Certainly Below is an improved Java program for the wind chill calculation with added code to check ... View full answer
Get step-by-step solutions from verified subject matter experts
