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
Write a method named quarterstodollars. the method should accept an int argument that is a number of quarters, and return the eq
enyata [817]
 public static void quarterstodollars(String[] args) {    Scanner input = new Scanner(System.in);    System.out.println("Enter number of Quarters:");
    System.out.print("Quarters:");    int Q1 = input.nextInt();
DecimalFormat fmt = new DecimalFormat("$#,###.##");    System.out.println("Total:"+fmt.format(calctotal(Q1)));}public static double calctotal(int Q1) {    double total;    total=(0.25 * Q1);    return (total);}

Hope this helps!
7 0
4 years ago
Read 2 more answers
What features should you look for in a printer? describe at least four in detail.?
zalisa [80]
DPI (Dots per inch), which is the resolution/detail that the printer can print.

Paper size, as you may want to print on a large range of media

Paper type, as conventional printers would print on standard paper, whilst different uses, such as photography, would benefit from printing on higher quality photo paper.

Connectivity, this can range from wireless over WiFi or Bluetooth, wired over Ethernet or USB, or even where you may have to connect a USB/SD card directly into the printer. All of these data transmission solutions would result in their own constraints and benefits.
4 0
4 years ago
Two devices are connected to the Internet and communicating with one another. A squirrel chews through one of the wires in the n
bearhunter [10]

Answer:

Fault-Tolerance

Explanation:

Fault tolerance refers to the ability of a system (computer, network, cloud cluster, etc.) to continue operating without interruption when one or more of its components fail.

5 0
4 years ago
What provision of the Government Paperwork Elimination Act was designed to encourage a paperless society?
Ratling [72]
<span>Validation of electronic signatures was designed to encourage a paperless society.</span>
8 0
3 years ago
Read 2 more answers
Critique and rank four different brands of antivirus software, rating them by price, functionality, and system requirements. Pre
scoundrel [369]

Answer:

Explanation:yes it's true bc you need to order them bye what they are and hope this is right of it isn't I'm truly sorry

5 0
3 years ago
Other questions:
  • What might happen if a computer has too many applications running at one time?
    15·1 answer
  • Websites often request information about you. You have a choice as to whether or not you provide this to them. What aspect of PA
    12·1 answer
  • The bearing of point p from A​
    15·1 answer
  • What do space stations, artificial organs, supersonic aircraft, and "high-tech”
    10·1 answer
  • LensForAll is a company that sells affordable contact lenses on its website. The CEO of the company realizes that an app must be
    9·1 answer
  • create your own min function that finds the minimum element in a list and use it in a separate function
    14·1 answer
  • Excel files have a default extension of ?
    12·1 answer
  • Requirements description:
    6·1 answer
  • The term platform as a service has generally meant a package of security services offered by a service provider that offloads mu
    9·1 answer
  • How can I get multiple user inputs in Java ? I want to be able to use it for subtraction, addition,division and multiplication.F
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!