Question: Need to use Python string formatting to align wind-chill values in equal-sized columns Using your knowledge of loops and other Python features covered so far,

Need to use Python string formatting to align wind-chill values in equal-sized columns  Need to use Python string formatting to align wind-chill values in
equal-sized columns Using your knowledge of loops and other Python features covered

Using your knowledge of loops and other Python features covered so far, write a program that prints a table of windchill values, where: Rows represent wind speed for O to 50 in 5 mph increments Columns represent temperatures from -20 to +60 in 10-degree increments Your program should include a function that returns windchill for a given combination of wind speed & temperature, using this formula from the National Weather Service: 35.74 + 0.6215 x T-35.75 x V0.16 + 0.4275 x T x V0.16 Where T-temperature in Fahrenheit and V-wind speed in mph. You should avoid hard-coding individual values of windspeed & temperature. Be sure to check your program output against this NWS chart https://www.weather.gov/safety/cold-wind-chill-charte Hint: the formula only applies for wind speeds> 3 mph Test your wind-chill function with hard-coded values for T&V before attempting output for multiple values, Use a hard-coded value for either T or V, while varying the other input, to calculate wind-chill before attempting to vary both inputs Consider how you might use a Python range to represent multiple wind-speed or temperature values, Don't worry about matching the exact format of the NWS table or making it pretty. Your output can look something like this, where first column is wind speed and first row is temperature, and NN is the correct windchill value for that cell -20 -10 0 10 20 30 40 50 60

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!