Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON Help! I need help coding this program. Please include code in answer! WINDS SPEEDS PROGRAM The program will prompt the user to enter a

PYTHON Help! I need help coding this program. Please include code in answer!

  • WINDS SPEEDS PROGRAM

  • 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:

o 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 blue color. The paragraph describing the type of damage due to the winds. This line of output is to be black color.

o See sample runs below.

image text in transcribed

Program organization: User-Defined Function Process and Output User input Function call (pass in speed to function) 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. 1 Below is another sample run of the program (187 is user input from keyword): Please enter sustained wind speed: 187 This is a category 5 hurricane 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

=+What country does your family come from?

Answered: 1 week ago