Answered step by step
Verified Expert Solution
Question
1 Approved Answer
My code is the second photo. It is telling me that wind is an invalid syntax and I also need to incorporate a def function
My code is the second photo. It is telling me that "wind" is an invalid syntax and I also need to incorporate a def function into the code somehow.
Python 3rd edition
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.16 0.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 Sample execution: Python 364 Shell ile Edrt Shell Debug Options Window Help Eython 3.6.4 (v3.6.4:d48eceb, Doc 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" Ior more information. RESTART: P:/Cmpsc131/Programming Assignment solutions/FA11Windchill.py This program calculates the windchill from the fahrenheit temporature and the wind spood Enter the fahrenheit temperature: 30 Enter the wind speed: 20 The windchill is: 17.4 Would you like to calculate another windchill? Knter "y" or "n": y Enter the fahrenheit temperature: 0 Enter the wind speod: 15 The windchill is: -19.4 Nould you like to calculate another windchil1? Enter "y" or "n": rnStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started