decision structures exampletemperature warnings let' start by getting the computer to make simple decision for an easy examplewe'll return to the celsius to fahrenheit temperature conversion program from rememberthis was written by susan computewell to help her figure out how to dress each morning in europe here is the program as we left itconvert py program to convert celsius temps to fahrenheit bysusan computewell def main()celsius eval(input("what is the celsius temperature")fahrenheit / celsius print("the temperature is"fahrenheit"degrees fahrenheit "main(this is fine program as far as it goesbut we want to enhance it susan computewell is not morning personand even though she has program to convert the temperaturessometimes she does not pay very close attention to the results our enhancement to the program will ensure that when the temperatures are extremethe program prints out suitable warning so that susan takes notice the first step is to fully specify the enhancement an extreme temperature is either quite hot or quite cold let' say that any temperature over degrees fahrenheit deserves heat warningand temperature under degrees warrants cold warning with this specification in mindwe can design an enhanced algorithm input the temperature in degrees celsius (call it celsiuscalculate fahrenheit as / celsius output fahrenheit if fahrenheit print heat warning if fahrenheit print cold warning this new design has two simple decisions at the end the indentation indicates that step should be performed only if the condition listed in the previous line is met the idea here is that the decision introduces an alternative flow of control through the program the exact set of steps taken by the algorithm will depend on the value of fahrenheit figure is flowchart showing the possible paths that can be taken through the algorithm the diamond boxes show conditional decisions if the condition is falsecontrol passes to the next statement in the sequence (the one belowif the condition holdshowevercontrol transfers to the instructions in the box to the right once these instructions are donecontrol then passes to the next statement