2

URGENT!!!! Need Help on JAVA problem THANKS

view story
linux-howto

http://www.daniweb.com – (Science: wind- chill temperature) How cold is it outside? The temperature alone in not enough to provide an answer. Other factors including wind speed, relative humidity, and sunshine play important roles in determining coldness outside. In 2001, the National Weather Service (NWS) implemented the new wind chill temperature to measure the coldness using temperature and wind speed. The formula is given as follows: Twc = 35.74 + 0.6215ta – 35.75v0.16 +0.4275tav0.16 Where ta is the outside temperature measured in degrees Fahrenheit and v is the speed measured in miles per hour. Twc is the wind chill temperature. The formula cannot be used for wind speeds below 2 mph or temperatures below -58 F or above 41 F. Write a program that prompts the user o enter a temperature between -58 F and 41 F and a wind speed greater than or equal to 2 and displays the wind chill temperature. Use Math.pow(a, b) to compute v0.16 SO FAR THIS IS WHAT I HAVE: package windchilltemperature; import java.util.Scanner; /**  *  * @author HP_Owner  */ public class WindChillTemp {     /**     * @param args the command line arguments     */     public static void main(String[] args) {         double OutsideTemperature = -58;         double ta;         double v;         double speed;         double WindChillTemperature = 35.74 + (0.6215 * ta) - 35.75 *Math.pow(v,0.16) + 0.4275 * ta * Math.pow(v, 0.16);         Scanner input = new Scanner(System.in);         //Enter Temperature in Fahrenheit, between -58F and 41F         System.out.print("Enter a temperature in F between -58F and 41F");         //Enter Wind Speed greater or equal to 2         System.out.print("Enter Wind Speed greater or equal to 2");                 //Calculate Wind Chill Temperature         //Display Results         System.out.println("The Wind Chill Temperature is" + WindChillTemperature);I DON'T GET WHAT I'M DOING WRONG!!! ANY HELP WOULD BE APPRECIATED! THANKS IN ADVANCE (General)