Question: Write C++ programs that produce solutions for the following problems. Suppose category is a variable of type int. Write a multi branch if /else statement

Write C++ programs that produce solutions for the following problems.

Suppose category is a variable of type int. Write a multi branch if /else statement to display wind speed of each hurricane category. For a category 1 hurricane display that the wind speed is 74-95 mph, for category 2 the wind speed is 96-110 mph, for category 3 the wind speed is 111-130 mph, for category 4 the wind speed is 131-155 mph, for category 5 the wind speed exceeds 155 mph. Sample run of program: Enter a category of hurricane (1 through 5):> 3The windspeed is 111-130 mph.

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!