问题:科学 风冷温度
利用温度和风速计算新的风冷温度来衡量寒冷度
import java.util.Scanner;
public class Cold {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Enter the temperature in Fahrenheit between -58F and 41F:");
double temperature = input.nextDouble();
System.out.println("Enter the wind speed in miles per hour:");
double speed = input.nextDouble();
double chill = 35.74 + 0.6215 * temperature - 35.75 * Math.pow(speed,0.16) + 0.4275 * temperature * Math.pow(speed,0.16);
System.out.println("The wind chill index is " + chill);
}
}