Question: MATLAB When a tropical storm grows powerful enough, it gets classified as a hurricane. There are 5 categories of hurricane intensity on the Saffir-Simpson scale.

MATLAB

When a tropical storm grows powerful enough, it gets classified as a hurricane. There are 5 categories of hurricane intensity on the Saffir-Simpson scale.

Write a program that is used to classify these types of storms. Your program should ask the user to supply the following storm information:

  • The wind speed
  • The name
  • The sex of the name (M or F)

If the user inputs a negative wind speed the program should display an error message and terminate.

Use the following information to classify the storm:

Wind Speed (in mph) Class Expected Storm Surge

0 74 water level Tropical Storm 1 4 ft above mean

75-95 water level Category 1 Hurricane 4 5 ft above mean

96-110 water level Category 2 Hurricane 6 8 ft above mean

111- 130 water level Category 3 Hurricane 9 12 ft above mean

131-155 water level Category 4 Hurricane 13 18 ft above mean

155 Infinity water level Category 5 Hurricane >18 ft above mean water

Your program should output the name, sex, class, and expected storm surge of the storm in a nice, presentable manner.

When the US weather authorities name storms, they alternate the sexes of the above names. Now on the news we see tropical storm Bill. This means that the next storm will have a female name.

Have your program output what the sex of the next storm will be.

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!