Question: 1. 2. 3. Write the function called fn_speedconv which converts the wind speed from mph to Knots and km/h. 1 Knots = 1.152 mph


1. 2. 3. Write the function called fn_speedconv which converts the wind speed from mph to Knots and km/h. 1 Knots = 1.152 mph 1 mph = 1.609 km/h The Beaufort Wind Scale (see table. 1)is used to characterize the strength of winds. The scale uses integer values and goes from a force of 0, which is no wind, up to 12, which is a hurricane. Write the script called Beaufort WindScale which convert the wind speed from mph to Knots (and km/h) and prints a message regarding what type of wind that Beaufort Wind Scale Force represents by using either if-elseif or switch statement. Wind converted to Knots should be rounded to show the integer. Display the wind speed in Knots and km/h also. Run the script Beaufort WindScale and find the class of the wind when the wind speed is 65 mph. Beaufort Wind Scale Force 0 1 2 3 4 5 6 7 8 9 10 11 12 Wind (Knots) 1 1-3 4-6 7-10 11-16 17-21 22-27 28-33 34 - 40 41-47 48-55 56-63 64 + Classification Calm Light Air Light Breeze Gentle Breeze Moderate Breeze Fresh Breeze Strong Breeze Near Gale Gale Strong Gale Storm Violent Storm Hurricane
Step by Step Solution
There are 3 Steps involved in it
code to copy functionfnspeedconv which takes input in mph ... View full answer
Get step-by-step solutions from verified subject matter experts
