Question: PYTHON Coding Help! I need help coding this program pleae follow instructions. 1. Wind Speeds (one function) The program will prompt the user to enter

PYTHON Coding Help! I need help coding this program pleae follow instructions.
1. Wind Speeds (one function)
The program will prompt the user to enter a sustained wind speed in the main part of the program and store it as an integer.
The program will then call a user-defined function and pass the speed variable into it.
The user-defined function will then use a decision (IF) statement to determine the level of a hurricane based on the sustained wind speed and output two things:
The message: This is a category X hurricane on the first line, where X is 1 through 5. This line of output is to be a BLUE
color.
BLUE = [1;34m
RESET = [0;0m
The paragraph describing the type of damage due to the winds. This line of output is to be BLACK color. See sample runs below.
Please include code in answer!
Please use photo attachment below to help!
Please make sure wind speed when entered shows the correct message and hurricane type like the sample run below attached.
 PYTHON Coding Help! I need help coding this program pleae follow
instructions. 1. Wind Speeds (one function) The program will prompt the user
to enter a sustained wind speed in the main part of the

Below is a sample run of the program (88 is user input from keyword): Please enter sustained wind speed: 88 This is a category 1 hurricane Very dangerous winds will produce some damage: Well-constructed frame homes could have damage to roof, shingles, vinyl siding and gutters. Large branches of trees will snap and shallowly rooted trees may be toppled. Extensive damage to power lines and poles likely will result in power outages that could last a few to several days. EXAMPLE: det evalstorm (wind_speed): BLUE -103311:34 RESET "10330: On 14 wind speed > 157: print (BLUE "This is a category 3 hurricane", RESET) print("catastrophie desage will cour: a high percentage of framed domes will be destroyed, with total root fasure and wall collapse. Tallen trees and power poles will Isolate residential areas. Power outages 11 last for weeks to possibly months. Most of the area will be uninhabitable for weeks or months) elit vind_Speed >130: print (BLUE": 13 * category hurricane", RESET) olie se: print (m 10 below hurricane Level wind spends" vind speed - int (input) evalstornind speed) Program organization: User-Defined Function Process and Output User input Function call (pass in speed to function) INFO: Category Sustained Winds Types of Damage Due to Hurricane Winds 76.36 mph Very Gangerous wide will produce some damage.com tame home could have damage to root 44-2 ording and Lagerfell and maybe 115-153ah tewe damage to powers and pole kelyll ut power outages Pratt tastatus veral days 2 *-110 tremely dangers wide wittestensive damage: Welcome tramos sustan jarroof and damage. Many oly rooted leped or red and blocker 156.177hpower expected with stages that code to adapt was no 115.12h Devastating damage will accur: We built red homes in major damage oral roof decking and 9-112 teen Mary trees will becoder rotet blocking numerode Electricity and water will be 178-200 for seven days to weeks to the store 130-156 Catastrophe damage will occur wel buit med omscan stain severe damage with low of most of the met 113-435 ructure ander onderter Wale Montres will be apped or uprooted and powerpore downed. Falentres and 200-351 kWh. Power will be poubly north. Most of the wr wb httle for works or month 157 mph or higher Catastrophe damage will occur. A high percentage of framed homes wie destroyed woolure and wat 137 or higher Fate tres and power poies will real Power outages wit for weeks to posibly Category Sustained Winds Types of Damage Due to Hurricane Winds Very dangerous winds will produce some damage: Well- constructed frame homes could have damage to roof, shingles, vinyl siding and gutters. Large branches of trees will snap and shallowly rooted trees may be toppled. Extensive damage to power lines and poles likely will result in power outages that could last a few to several days. 74-95 mph 64-82 kt 119-153 km/h 1 2 96-110 mph kt 154-177 km/h Extremely dangerous winds will cause extensive damage: Well- constructed frame homes could sustain major roof and siding damage. Many shallowly rooted trees will be snapped or uprooted and block numerous roads. Near-total power loss is expected with outages that could last from several days to weeks. 3 (major) 111-129 mph 96-112 kt 178-208 km/h Devastating damage will occur: Well-built framed homes may incur major damage or removal of roof decking and gable ends. Many trees will be snapped or uprooted, blocking numerous roads. Electricity and water will be unavailable for several days to weeks after the storm passes. 4 (major) 130-156 mph 113-136 kt 209-251 km/h Catastrophic damage will occur: Well-built framed homes can sustain severe damage with loss of most of the roof structure and/or some exterior walls. Most trees will be snapped or uprooted and power poles downed. Fallen trees and power poles will isolate residential areas. Power outages will last weeks to possibly months. Most of the area will be uninhabitable for weeks or months. 5 (major) 157 mph or higher 137 kt or higher 252 km/h or higher Catastrophic damage will occur: A high percentage of framed homes will be destroyed, with total roof failure and wall collapse. Fallen trees and power poles will isolate residential areas. Power outages will last for weeks to possibly months. Most of the area will be uninhabitable for weeks or months

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!