| about | help | code help+videos | done | prefs |
windChill() - Given a temperature (in degrees Fahrenheit) and wind speed (in miles per hour), you are to calculate the wind-chill factor (i.e., the apparent temperature). Note that if the wind speed is 3 miles per hour or less, then the wind-chill is the same as the temperature. Otherwise, the wind-chill is defined by the following formula: 35.74 + 0.6215*temp + (0.4275*temp - 35.75)*wind^0.16. Your calculated wind-chill should be rounded to the nearest integer. windChill(20, 10) → 9 windChill(12, 30) → -10 windChill(-8, 3) → -8 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy