Add the following to your existing code. DO NOT re- scratch! (see sample output)message. As an example, the windchill between degrees below you might say; it between you might say c) Use the following ranges:i) Between 20 and 40 degrees ii)Between -20 and 19 degrees iii)Less than -20 degreesNotes About This AssignmentThere are three main control structures a program. These are:Sequence: All statements in the program/code block are sequentiallySelection: The program/code block needs to make a choice based certain conditions. As an example, you go to an ATM, enter your PIN accidentally enter the wrong PIN. You get an error message. That a selection control structure. The PIN you entered compared against the PIN stored your card stripe equivalency. The result the comparison can be either . If it you are shown an error.Repetition: When a program/code block repeats either a set number of times or until a certain condition becomes true or false. In the ATM example, the machine prompts you to re-enter your PIN. That is a repetition.this is the existing codeprint(‘This is the magical wind chill calulator! Enter a temperature in degrees fahrenheit and a wind speed in MPH and see a wind chill value’)print(‘see the sample belownn’)print(format(‘Temperature’, ‘<20'), format('Wind Speed', '<30'), format('Wind Chill', '<30'))temp=20wind=19WC=4.6print(format(temp, '<20,.2f'), format(wind, '<30,.2f'), format(WC, '<30,.2f'))temp=0wind=5WC=-10.51print(format(temp, '<20,.2f'), format(wind, '<30,.2f'), format(WC, '<30,.2f'))temp=-15wind=25WC=-44.15print(format(temp, '<20,.2f'), format(wind, '<30.2f'), format(WC, '<30,.2f'))temp = float(input('what is the temperature for which you want to calculate a wind chill index:'))wind = float(input('what is the wind speed:'))WC=35.74 +0.6215 * temp -35.75 * wind**0.16 + 0.4275 * temp * wind**0.16print(WC)
Existing code
We help you get better grades, improve your productivity and get more fun out of college!!
Get Homework Answer for this question
Free title page
Free reference page
Free formatting
Unlimited revisions