Question: / * * Class: CMSC 2 0 1 * Instructor: Prof. Kash Tajammul * Description: Program Calculations for Wind Chill Temperature * Due: 0 1
Class: CMSC
Instructor: Prof. Kash Tajammul
Description: Program Calculations for Wind Chill Temperature
Due:
I pledge that I have completed the programming assignment independently.
I have not copied the code from a student or any source.
I have not given my code to any student.
Kevin.Stoute
Declare package
package WindChillTemperature;
Import Scanner utility
import java.util.Scanner;
public class WindChillTemperature
public static void mainString args
Declare a Scanner object called input to read data from the user.
Scanner input new ScannerSystemin;
Obtain outside temperature.
System.out.printEnter outside temperature between and in Fahrenheit: ;
double outsideTemperature input.nextDouble;
Obtain wind speed.
System.out.printEnter wind speed in miles per hour: ;
double windSpeed input.nextDouble;
Calculate windchill temperature.
double windChillTemperature
outsideTemperature
MathpowwindSpeed
outsideTemperature MathpowwindSpeed;
Display windchill temperature.
The variable windChillTemperature is converted to float datatype
so that it displays less decimal places.
System.out.printlnThe wind chill index is: float windChillTemperature;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
