Program WindChillIndex Solution

$30.00

Description

File Name:

H:\CPSC1150\Lab2\WindChillIndex.java

Purpose

To calculate the wind chill rating from the temperature and wind speed

.

Input

Air temperature and Wind Speed

Output

The wind-chill index

Program Logic (Pseudocode)

Algorithm WindChillIndex

Start

1. Initialize variables

(a) Temperature (input) in double

(b) Wind Speed (input) in double

(c) Wind Chill Index (output) in double

2. Allow the user to enter an input for air temperature

(a) If the temperature is above 5 degrees Celsius, let the user know and terminate the program

(b) If the temperature is below -50 degrees Celsius, let the user know and terminate the program

(c) If the temperature is between then continue.

3. Allow the user to enter an input for wind speed

(a) If the wind speed is below 0 km/h, let the user know and terminate

(b) If the wind speed is above 100km/h, let the user know and terminate

(c) If the wind speed is between then continue.

4. Allow the system to do calculations for the wind chill index

(a)Write in the formula for the index

(b) Display to the user and terminate