//Windchill Homework 2 by Kenneth Payne
//'main' method must be in a class 'Rextester'.
//Compiler version 1.8.0_45
import java.util.Scanner; //for inputs
class Rextester
{
public static void main(String [] args)
{
Scanner sc = new Scanner(System.in);
double windSpeed, temperature, windChill;
//user input
System.out.println("Enter temperature between -58 and 41 degrees Fahrenheit.: ");
temperature = sc.nextDouble();
System.out.print("Enter wind speed greater than or equal to 2: ");
windSpeed= sc.nextDouble();
//calculate wind chill
windChill = 35.74 + 0.6215 * temperature + (0.4275 * temperature - 35.75) * Math.pow(windSpeed, 0.16);
//print results
System.out.println("Wind chill is: " + Math.floor(windChill));
}
}