Question

Wind chill on a windy day, a temperature of 15 degrees may feel colder, perhaps it may feel like 7 degrees The formula belowdef windChill(t,v): for t in range(-50,50): if 3 < v <120: w ● round( 35.74 return w + 0.6215*t + (0.4275*t 35.75) (vxzg.16))

This is for Python3. Why do the answers to these two conditions differ? thank you very much!

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer

because the one with the for loop is iterating from -50 to 50
and returns wind chill factor value for t = -50
so, in your function, wind chill factor is always calculated with temperature of -50
Add a comment
Know the answer?
Add Answer to:
This is for Python3. Why do the answers to these two conditions differ? thank you very...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please help in c++, follow the instructions, please. try to use pass by reference and pass...

    Please help in c++, follow the instructions, please. try to use pass by reference and pass by value if you could Description: Write a program that will input wind speed and temperature and output the wind-chill factor. W = 35.74 + 0.6215 ∗ T − 35.75 ∗ V 0.16 + 0.4275 ∗ T ∗ V 0.16 Your program should use at least 2 functions in addition to main. One that uses pass by reference parameters and prompts the user for...

  • In C++ Code and Algorithm Please Thanks:) During winter when it is very cold, typically, everyone...

    In C++ Code and Algorithm Please Thanks:) During winter when it is very cold, typically, everyone would like to know the windchill factor, especially, before going out. Meteorologists use the following formula to compute the windchill factor, W: Your program must contain at least two functions: one to get the user input and the other to determine the windchill factor. The main function is not considered to be one of two functions. That function is always included. Also, the functions...

  • Need to use Python string formatting to align wind-chill values in equal-sized columns Using your knowledge...

    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, 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...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT