Question
Whether a storm is a tropical depression, tropical storm, or hurricane is determined by the average sustained wind speed. 1. In miles per hour, a
Whether a storm is a tropical depression, tropical storm, or hurricane is determined by the average sustained wind speed. 1. In miles per hour, a storm is a tropical depression if the winds are less than 38 mph. 2. It is a tropical storm if the winds are between 39 and 73 mph. 3. It is a hurricane if the wind speeds are at least 74 mph Write a script to determine the storm catagory given the wind speed. Write a script to assign a string to the variable named TheStormCategory Depending on the value of WindSpeed the string will be one of the following: 1. Tropical depression 2. Tropical storm 3. Hurricane You must use one if-elseif-else-end statement! Note WindSpeed is a random integer between 38 and 100 mph Document your code and include your first and last name as a co
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started