windChill = round(35.74 + 0.6215*T – 35.75*S0.16 + 0.4275*T*S0.16)
Where T is the temperature in degrees Fahrenheit, and S is the wind speed in mph.
Write a program that will produce the following wind chill table. You must use a nested loop.
Wind Chill Index Table
| Temperature
MPH | 45 40 35 30 25 20 15 10 5 0 -5 -10
-----------------------------------------------------------
5 | 42 36 31 25 19 13 7 1 -5 -11 -16 -22
10 | 40 34 27 21 15 9 3 -4 -10 -16 -22 -28
15 | 38 32 25 19 13 6 0 -7 -13 -19 -26 -32
20 | 37 30 24 17 11 4 -2 -9 -15 -22 -29 -35
25 | 36 29 23 16 9 3 -4 -11 -17 -24 -31 -37
30 | 35 28 22 15 8 1 -5 -12 -19 -26 -33 -39
35 | 35 28 21 14 7 0 -7 -14 -21 -27 -34 -41
40 | 34 27 20 13 6 -1 -8 -15 -22 -29 -36 -43
45 | 33 26 19 12 5 -2 -9 -16 -23 -30 -37 -44
50 | 33 26 19 12 4 -3 -10 -17 -24 -31 -38 -45
-----------------------------------------------------------
The output must be identical to the one listed above. Use a field width of 5 to display table entries; for example, cout << setw(5) << x; will display x within 5 character positions.
Where T is the temperature in degrees Fahrenheit, and S is the wind speed in mph.
Write a program that will produce the following wind chill table. You must use a nested loop.
Wind Chill Index Table
| Temperature
MPH | 45 40 35 30 25 20 15 10 5 0 -5 -10
-----------------------------------------------------------
5 | 42 36 31 25 19 13 7 1 -5 -11 -16 -22
10 | 40 34 27 21 15 9 3 -4 -10 -16 -22 -28
15 | 38 32 25 19 13 6 0 -7 -13 -19 -26 -32
20 | 37 30 24 17 11 4 -2 -9 -15 -22 -29 -35
25 | 36 29 23 16 9 3 -4 -11 -17 -24 -31 -37
30 | 35 28 22 15 8 1 -5 -12 -19 -26 -33 -39
35 | 35 28 21 14 7 0 -7 -14 -21 -27 -34 -41
40 | 34 27 20 13 6 -1 -8 -15 -22 -29 -36 -43
45 | 33 26 19 12 5 -2 -9 -16 -23 -30 -37 -44
50 | 33 26 19 12 4 -3 -10 -17 -24 -31 -38 -45
-----------------------------------------------------------
The output must be identical to the one listed above. Use a field width of 5 to display table entries; for example, cout << setw(5) << x; will display x within 5 character positions.