/**
* 外面到底有多冷?
* 风寒温度 = 35.74 + 0.621 * (5 * 室外温度) - 35.75 * Math.pow(室外温度, 0.16) + 0.427 * (5 * 室外温度) * Math.pow(室外温度, 0.16)。
* 提示用户输入在-58F和41F之间的度,同时大于或等于2的风速,然后显示风寒温度。
*/
package Test;
import java.util.Scanner;
public class T217Scanner {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter the temperature in Fahrenheit: ");
double Ta = input.nextDouble();
System.out.print("Enter the wind speed miles per hour: ");
double V = input.nextDouble();
double Tw = 35.74 + 0.621 * (5 * Ta) - 35.75 * Math.pow(Ta, 0.16) + 0.427 * (5 * Ta) * Math.pow(Ta, 0.16);
System.out.println("The wind chill iindex is " + Tw);
}
}第2章:外面到底有多冷
最新推荐文章于 2025-09-29 08:45:49 发布
2252

被折叠的 条评论
为什么被折叠?



