Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
add the following to your existing code. DO NOT re- write the whole program from scratch!
- add the following to your existing code. DO NOT re-
- c) Use the following ranges:
- i) Between 20 and 40 degrees ii)Between -20 and 19 degrees iii)Less than -20 degrees
- Sequence: All statements in the program/code block are
- Selection: The program/code block needs to make a choice based
- 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 code
print('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=20
wind=19
WC=4.6
print(format(temp, '<20,.2f'), format(wind, '<30,.2f'), format(WC, '<30,.2f'))
temp=0
wind=5
WC=-10.51
print(format(temp, '<20,.2f'), format(wind, '<30,.2f'), format(WC, '<30,.2f'))
temp=-15
wind=25
WC=-44.15
print(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.16
print(WC)