/*
*This program generates a random number
*between 1-5, which will correspond
*with each of the different outputs
*about hurricane Categories
*Author: Ryan Loo
*Teacher: Mr.Rilett
*Date Created: 29/3/2021
*/
class Hurricane
{
public static void main(String[] args)
{ //Variable
int switchName = (int)Math.ceil(Math.random()*6);
//Switch Statement with multiple cases and a default case
switch(switchName)
{
case 1:
System.out.println("The windspeeds for Category 1 are 74-95 mph or 64-82 kt or 119-153 km/hr");
break;
case 2:
System.out.println("The windspeeds for Category 2 are 96-110 mph or 83-95 kt or 154-177 km/hr");
break;
case 3:
System.out.println("The windspeeds for Category 3 are 111-130 mph or 96-113 kt or 178-209 km/hr");
break;
case 4:
System.out.println("The windspeeds for Category 4 are 131-155 mph or 114-135 kt or 210-249 km/hr");
break;
case 5:
System.out.println("The windspeeds for Category 5 are greater than 155 mph or 135 kt or 249 km/hr.");
break;
default:
System.out.println("This does not fall under any of the Categories. Please Try Again.");
}
}
}