Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

add the following to your existing code. DO NOT re- write the whole program from scratch!

  1. 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
  1. c) Use the following ranges:
  2. i) Between 20 and 40 degrees ii)Between -20 and 19 degrees iii)Less than -20 degrees
Notes About This AssignmentThere are three main control structures a program. These are:
  1. Sequence: All statements in the program/code block are
sequentially
  1. Selection: 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.
  1. 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.
  2. 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)

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question