import java.util.Scanner;
public class Main
{
public static void main(String[] args){
double ta,v,x,y,z,m,n;
System.out.print("Enter the temperature in Ferverent between -58F and 41F: ");
Scanner input =new Scanner (System.in);
ta=input.nextInt();
System.out.print("Enter the wind speed(>=2) in miles per hour: ");
v=input.nextInt();
x=35.74+0.621*ta;
double base = 35.75, exponent = 0.16;
y = Math.pow(base, exponent);
z=Math.pow((0.4275*ta*v),0.16);
m=y+z;
n=x-z;
System.out.print("The wind chill index is: ");
System.out.print(n);
}
}
Comments
Leave a comment