Question: Please use Python for this program. Use # to explain the code when necessary. I also attached a grading rubic. Thanks Windchill During winter, everyone
Windchill During winter, everyone would like to know the windchill factor, especially, before going out.Meteorologists use the following formula to compute the windchill factor: windchill = 35.74 + 0.6215 * temperature-35.75 * speed* 0.160.4275 * temperature speed**0.16 where temperature is in degrees Fahrenheit, and speed is the wind speed in miles per hour. Write a program that prompts the user to input the wind speed in miles per hour, and the temperature in degrees Fahrenheit. The program will then display the windchill factor to 1 decimal place. The program must contain at least two functions: one to get the user input and return the temperature and wind speed, and the other to calculate the windchill and return it when passed the temperature and wind speed. The program should contain a loop that allows the user to calculate more than one windchill factor. The headers for the two functions should look like def get input): and def calculate windchill temperature, wind speed): Sample execution: Python 3.64 Shell File Edit Shell Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32 Type "copyright", "credits" or "license )" for more information. Options Window Help RESTART: P:/Cmpsc131/Programming Assignment Solutions/Allwindchill.py This program calculates the windchill from the fahrenheit temperature and the wind speed Enter the fahrenheit temperature: 30 Enter the wind speed: 20 The windchil1 is: 17.4 Would you like to calculate another windchill? Enter "y" or "n": y Enter the fahrenheit temperature: 0 Enter the wind speed: 15 The windchill is: -19.4 Would you like to calculate another windchil1? Enter "y" or "n": n Up to -10 for not using good standard programming conventions. 40 points input 10 points function created for input and called 10 points windchill and fahrenheit taken in function 10 speed and temperature returned 10 points looping till "n" 30 points windchill function 10 points function created and called 10 two parameters 10 points calculating value in function and returning 20 points output 10 correct output 10 to correct decimal place
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
