// File: WindChill.java // Written By: Deepak Kumar // Date: 9/17/2028 // Purpose: Given a temp in degrees F, and wind speed in mph // Compute and output the Wind Chill temp in degrees F. // Note: temp has to be less than 50 degrees F // Wind speed has to be greather than 3 mph and less than 120 mph // Usage: java WindChill public class WindChill { public static void main(String[] args) { double T, v, w; // T, v w, are double (not a good comment) // First, get input of temp and wind speed from command line T = Double.parseDouble(args[0]); // First arg is tempF v = Double.parseDouble(args[1]); // Compute wind speed using formula provided from NWS w = 35.74 + 0.6215*T + (0.4275*T - 35.75) * Math.pow(v, 0.16); // Output results System.out.println("Air Temp = " + T + " degrees F"); System.out.println("Wind speed = " + v + " mph"); System.out.println("The wind chill temp is " + w + " degrees F"); } // main() } // class WindChill