1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vaieri [72.5K]
3 years ago
7

Write an application named Hurricane that outputs a hurricane’s category based on the user’s input of the wind speed. Category 5

hurricanes have sustained winds of at least 157 miles per hour. The minimum sustained wind speeds for categories 4 through 1 are 130, 111, 96, and 74 miles per hour, respectively. Any storm with winds of less than 74 miles per hour is not a hurricane. If a storm falls into one of the hurricane categories, output This is a category # hurricane, with # replaced by the category number. If a storm is not a hurricane, output This is not a hurricane.
Computers and Technology
1 answer:
Serggg [28]3 years ago
7 0

Answer:

def Hurricane(wind_speed):

   if wind_speed >= 157:

       print("Category 5 hurricane")

   elif wind_speed >= 130:

       print("Category 4 hurricane")

   elif wind_speed >= 111:

       print("Category 3 hurricane")

   elif wind_speed >= 96:

       print("Category 2 hurricane")

   elif wind_speed >= 74:

       print("Category 1 hurricane")

   else:

       print("Not a hurricane")

Hurricane(121)

Explanation:

The function "Hurricane" in the python code accepts only one argument which is the recorded speed of a hurricane. The nested if-statement evaluates the speed of the hurricane and output the appropriate category of the hurricane based on the speed.

You might be interested in
What do you understand by animation?How is it helpful in a presentations?​
aleksandrvk [35]

Answer:

Animation can help make a PowerPoint presentation more dynamic, and help make information more memorable. ... Animation can be useful in making a presentation more dynamic, and help to emphasize points, but too much animation can be distracting. Do not let animation and sound take the focus away from what you are saying.

Explanation:

TWACB

3 0
3 years ago
Winds can occur due to unequal heating within the atmosphere true or false?​
spin [16.1K]
True
Sorry if it’s wrong need to answer some before asking a question
7 0
4 years ago
Which occupation is expected to increase according to the segment? Plz help me with question 5
pantera1 [17]
In the Declaration of Independence it states, "To secure these rights, governments are instituted among men deriving their just power from the consent of the governed. Whenever any form of government becomes destructive of these ends, it is the right of the people to alter or abolish it."

What Enlightenment idea is reflected in this passage?
6 0
3 years ago
Which network device is capable of blocking network connections that identify as potentially malicious
Katarina [22]
Gateway is the correct answer
6 0
3 years ago
If you want to use floating for a 3-column page layout that consists of an aside, a main element, and another aside, you need to
Dmitry_Shevchenko [17]

Answer:

b. the width of the body element and one or more of the contained elements to percents.

Explanation:

If you want to use floating for a 3-column page layout that consists of an aside, a main element, and another aside, you need to set the width of the body element and one or more of the contained elements to percents.

4 0
3 years ago
Other questions:
  • Given ProblemSolution class. Use a pointer to object of "ProblemSolution" class to invoke the "CalculateSum" and "Print" methods
    15·1 answer
  • The name of the opening that lets light into any camera is called ________.
    11·2 answers
  • Write a program which reads in a single integer 0 <= n < 30 and prints out the factorial of n. Factorials get very big ver
    9·2 answers
  • A feature that displays in the lower right corner of a selected range with which you can analyze your data by using Excel tools
    12·2 answers
  • A computer may keep freezing if it's software is up-to-date? <br> True <br> False
    11·1 answer
  • Choose the word that matches each definition. : processed facts, how the output is used for making decisions : action performed
    12·2 answers
  • What is output if the user types in 8? Click all that apply.
    11·1 answer
  • (image attached)
    12·1 answer
  • How do I make time go by faster?? school is so boring gosh..
    10·2 answers
  • How to fix this? Zoom it in to see it better
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!