Question: 1 . Write a C + + program that does the following: a . Create a C + + file with the name problem 1

1. Write a C++ program that does the following:
a. Create a C++ file with the name problem1.cpp.
b. Prompt the user to enter a hurricane category number.
c. Use a nested if-then-else statement to print the wind speed of the hurricane category the user entered.
For a category 1 hurricane, the wind speed is 74-95 mph.
For a category 2 hurricane, the wind speed is 96-110 mph.
For a category 3 hurricane, the wind speed is 111-130 mph.
For a category 4 hurricane, the wind speed is 131-155 mph.
For a category 5 hurricane, the wind speed exceeds 155 mph.
Sample run of the program:
Enter a category of hurricane (1 through 5): 3
The wind speed 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 Programming Questions!