Answered step by step
Verified Expert Solution
Question
1 Approved Answer
/ * * 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started