Below is the syntax highlighted version of WindChill.java.
/************************************************************************* * Name: * Login: * Precept: * * Compilation: javac WindChill.java * Execution: java WindChill t v * * Given the temperature t (in Fahrenheit) and the wind speed v * (in miles per hour), compute the wind chill w using the formula * from the National Weather Service * * w = 35.74 + 0.6215*t + (0.4275*t - 35.75) * v ^ 0.16 * * Reference: http://www.nws.noaa.gov/om/windchill/index.shtml * Ex. 1.2.25 *************************************************************************/ public class WindChill { public static void main(String[] args) { // input temperature and wind velocity double t = Double.parseDouble( ); double v = // compute wind chill // output wind chill System.out.println( ); } }