Question

In: Electrical Engineering

The higher the wind speed, the quicker a body cools. To quantify this wind speed chilling...

The higher the wind speed, the quicker a body cools. To quantify this wind speed chilling effect, both the U.S. and Canadian weather services have determined wind chill temperatures for temperatures below 50°F and wind speeds above 4 mph in the United States and temperatures below 10°C and wind speeds above 4.8 km/hr in Canada. An approximation of the official wind chill temperature, for both metric and English units, is given by this formula:

WCI = K1 + 0.6125 Ta - K2Ws0.16 + K3TaWs0.16
The following chart lists the correct dimensions and values for both systems of units:

Symbol

Meaning

Metric Units (Canada)

U.S. Customary Units

WCI

Wind chill index

°C

°F

Ta

Measured temperature

°C

°F

Ws

Wind speed

km/hr

mi/hr

K1

Conversion factor

13.12

35.74

K2

Conversion factor

11.37

35.75

K3

Conversion factor

0.3965

0.4275

Using the wind chill formula, write, compile, and run a C++ program that displays a table of wind chill indexes for temperatures from 2°C to 10°C, in 4-degree increments, and for each temperature, wind speeds from 5 km/hr to 11 km/hr in 2-km/hr increments.

Solutions

Expert Solution

#include <iostream>

#include <iomanip>

using namespace std;

int main()

{

char c;

cout << "Enter your choice that you want to see table in C or F: ";

cin >> c;

switch (c)

{

case 'C':

{

float ws, K1 = 13.12, K2 = 11.37, K3 = .3965, wci;

cout << "Enter wind speed in km/hr: ";

cin >> ws;

int ta;

cout << setw(10) << "Ta" << setw(10) << "Ws" << setw(10) << "WCI" << endl;

cout << "----------------------------------------" << endl;

for (ta = -10; ta <= 10; ta += 5)

{

wci = K1 + (0.6215 * ta) + K2 * ws * 0.016 + K3 * ta * ws * 0.16;

cout << setw(10) <<ta << setw(10) << ws << setw(10) << wci<<endl;

}

}

break;

case 'F':

{

float ws, K1 = 35.74, K2 = 35.75, K3 = .4275, wci;

cout << "Enter wind speed in km/hr: ";

cin >> ws;

int ta;

cout << setw(10) << "Ta" << setw(10) << "Ws" << setw(10) << "WCI" << endl;

cout << "----------------------------------------" << endl;

for (ta = -30; ta <= 20; ta += 10)

{

wci = K1 + (0.6215 * ta) + K2 * ws * 0.016 + K3 * ta * ws * 0.16;

cout << setw(10) <<ta << setw(10) << ws << setw(10) << wci<<endl;

}

}

break;

default:

cout << "Invalid Option."<<endl;

return 0;

}

}


Related Solutions

The wind speed in Laramie, Wyoming is normally distributed. The average wind speed for the state...
The wind speed in Laramie, Wyoming is normally distributed. The average wind speed for the state of Wyoming is approximately 20 mph. A curious student wanted to find out if the wind speed in Laramie was different than the state average. They took a sample of 25 random days in Laramie, measured the wind speed, and found an average of 18 mph with a standard deviation of 7.8 miles per hour. Test the claim that the average wind speed in...
The wind chill factor depends on wind speed and air temp. This data represents the wind...
The wind chill factor depends on wind speed and air temp. This data represents the wind speed (in miles per hour) and wind chill factor at an air temp. of 15 degrees F. Wind speed(x) 5, 10, 15, 20, 25, 30, 35 Wind chill(y) 12, -3, -11, -17, -22, -25, -27 Compute the least squares regression line and correlation coefficient for this data. Predict the wind chill for a wind speed of 50 miles per hour. Determine the wind speed...
1. Please determine the maximum wind speed for a tropical cyclone with the following wind speeds....
1. Please determine the maximum wind speed for a tropical cyclone with the following wind speeds. NOTE!!! Assume the ambient (external) pressure to be 101.3 kPa (Be sure to remember your units) (a) Pressure of 90.6 kPa (b) Pressure of 91.9 kPa (c) Pressure of 93.8 kPa (d) Pressure of 97.1 kPa
The rate at which a body cools also depends on its exposed surface area S. If...
The rate at which a body cools also depends on its exposed surface area S. If S is a constant, then a modification of (2), given in Section 3.1, is dT dt = kS(T − Tm), where k < 0 and Tm is a constant. Suppose that two cups A and B are filled with coffee at the same time. Initially, the temperature of the coffee is 145° F. The exposed surface area of the coffee in cup B is...
A potential wind turbine location has an average wind speed of 5 m/s at a height...
A potential wind turbine location has an average wind speed of 5 m/s at a height of 10 m. A) Assuming a standard wind friction coefficient of 1/7, what is the average wind power per area at the proposed tower height of 80 m? B) If the proposed turbine has a cut-in speed of 4 m/s and a furling speed of 20 m/s, how many hours per year is the windmill not spinning (assuming Rayleigh statistics)? C) Estimate the yearly...
Sweating cools your body by Group of answer choices the surface tension of water molecules beading...
Sweating cools your body by Group of answer choices the surface tension of water molecules beading on the surface of the skin dissolving salt into the sweat releasing heat because droplets of water can hold a lot of heat being a good insulator for heat
The speed of a plane in the absence of wind is 500 km/hr. In the presence...
The speed of a plane in the absence of wind is 500 km/hr. In the presence of a wind, in order to fly due north at a speed of 450 km/hr with respect to the ground, the pilot must point the plane in a direction 35o east of due north. Which of the following vectors (in unit vector notation) describes the velocity of the wind with respect to the ground?
describe the relationship in detail between wind speed and carbon dioxide concentration
describe the relationship in detail between wind speed and carbon dioxide concentration
The mean wind speed in San Francisco is 13.6 mph in July, according to the U.S....
The mean wind speed in San Francisco is 13.6 mph in July, according to the U.S. National Oceanic and Atmospheric Administration. Suppose that the distribution of the wind speed in July in San Francisco is normal with mean μ=13.6 mph and standard deviation σ=6 mph. Find the probability that a randomly chosen day in July has the following wind speeds: 1. 7.2 mph or less 2. Greater than 20 mph 3. Between 15 and 20 mph 4. Tours to Alcatraz...
Consider an airfoil in a high-­?speed wind tunnel. At the minimum-­?pressure point on the wing, the...
Consider an airfoil in a high-­?speed wind tunnel. At the minimum-­?pressure point on the wing, the velocity is 900 ft/s. If the test section flow velocity is 750 ft/s at standard sea-­? level conditions: a) Calculate the pressure coefficient at this point on the wing. b) Calculate the critical pressure coefficient corresponding to this flight condition. c) Comparing your answers from parts (a) and (b), what conclusion can you make as to the nature of the flow over the wing?...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT