Difference between revisions of "Wind Chill"

From CompSciWiki
Jump to: navigation, search
Line 13: Line 13:
 
{{CodeBlock
 
{{CodeBlock
 
|Code=Bla7;
 
|Code=Bla7;
 +
}}
 
}}
 
}}

Revision as of 21:28, 3 April 2012

COMP 1010 Home > Back to Extra Labs

Introduction

In Winnipeg , it is noted that wind can make the air temperature even much colder. Write a program that will uses "input" to read in an air temperature and a wind speed. Then use the formula below to calculate and output the windchill.

<math>T_{wc}=13.12 + 0.6215 T_a-11.37 V^{0.16} + 0.3965 T_a V^{0.16}\,\!</math>
where <math>T_{wc}\,\!</math> is the wind chill index based on the Celsius scale, <math>T_a\,\!</math> is the air temperature in °C, and <math>V\,\!</math> is the air speed in km/h.
Equation taken from Wikipedia which cites http://www.msc.ec.gc.ca/education/windchill/science_equations_e.cfm

Step 1:

 Bla7;