id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

davereed@creighton.edu > windChill
prev  |  next  |  chance

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)

public int windChill(int temp, int wind) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Copyright Nick Parlante 2017 - privacy