CSCI-2467 Lab 2 – Hurricane Wind Scale

Write a Java program that asks the user to enter the wind speed. Use a series of nested if statements to determine the intensity of the storm using the above table. Output your result.

Validate your input to check for (invalid) negative wind speeds. For invalid wind speeds – output the classification: Invalid input.

DETAILED ASSIGNMENT

20200914211845lab2__4_

Powered by WordPress