Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON: 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:

PYTHON: 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.

image text in transcribed

Python 3.64 Shell File Edit Shel Debug Options Window Help 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. -RESTART: P: /Cmpsc131/Programming Assignment Solutions/PA11windchill.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 windchill 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 windchill? Enter "y" or "n": n

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Finance The Role Of Data Analytics In Manda Due Diligence

Authors: Ps Publishing

1st Edition

B0CR6SKTQG, 979-8873324675

More Books

Students also viewed these Databases questions

Question

1. Describe the factors that lead to productive conflict

Answered: 1 week ago