1. 2. 3. Write the function called fn_speedconv which converts the wind speed from mph to...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
code to copy functionfnspeedconv which takes input in mph ... View the full answer
Related Book For
Posted Date:
Students also viewed these electrical engineering questions
-
3 4 5 6 7 8 9 10 11 12 13 A 14 Cost of the Asset 15 Life of the Asset in Years 16 Book Value of the Asset after 5 years 17 Depreciable Basis 18 Yearly depreciation 19 After tax Salvage Value in year...
-
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ARASIN22227 17 18 19 20 21 23 24 25 26 1) (2) Sales Price per unit Variable Cost per unit Contribution per unit Contribution Margin Ratio Break Even Point Sales...
-
2 3 4 5 6 7 8 9 10 11 12 13 14 Start Excel Download and open the file named EXP19 Excel Ch06 ML2 HW DeckBuilders.xlsx. Grader has automatically added your last name to the beginning of the filename...
-
Patients who undergo chronic hemodialysis often experience severe anxiety. Videotapes of progressive relaxation exercises were shown to one group of patients and neutral videotapes to another group....
-
Access EDGAR online (www.sec.gov) and locate the 10-K report of The Gap, Inc., (ticker GPS) filed on March 26, 2010. Review its financial statements reported for the year ended January 30, 2010, to...
-
May Industries has a bond outstanding that sells for $928. The bond has a coupon rate of 7.5 percent and nine years until maturity. What is the yield to maturity of the bond?
-
What is an attorneys lien?
-
Using the information in E22-3, assume that in July 2014, Thome Company incurs The following manufacturing overhead costs. Instructions (a) Prepare a flexible budget performance report, assuming that...
-
If a company no longer meets the listing requirements of the TSX Venture Exchange, what might occur? A It can request to be exempt from the TSX-V requirements. B) It may be listed on the NEX...
-
John Fuji (birthdate June 6, 1981) moved from California to Washington in December 2018. His earnings and income tax withholding for 2019 for his job as a manager at a Washington apple-processing...
-
Company X owns 75% of the shares of Company Y. On 1/1/2016, the holding company sold the machines to the subsidiary company at a price of 70,000 dinars, knowing that the cost of the machines in the...
-
Koyo, Inc. sold its 10% bonds with a maturity value of $7,000,000 on August 1, 20251 for $6,896,000, before paying $100,000 of bond issue costs. At the time of the sale the bonds had 5 years until...
-
Cathode ray tubes (CRTs) used in old-style televisions have been replaced by modern LCD and LED screens. Part of the CRT included a set of accelerating plates separated by a distance of about 1.38...
-
The Antarctic Circumpolar Current flows between the Palmer Peninsula (the northernmost part of the Antarctic) and the southern tip of South America at 2 m sec-1. If the flow is geostrophic, what is...
-
Discuss the design principles and implementation strategies behind fault tolerance mechanisms in operating systems, including redundancy, error detection, and error recovery techniques to ensure...
-
Consider the following information and determine how Smith & Company's audit report should be dated. Explain your answer: ABC Bank's balance sheet is dated December 31, 2019. On January 12, ABC's...
-
JAVA #2: Costs $80,000, and will facilitate profits of $19,500/year. Assign the Second host IP address from Network Q subnet to PC2. g. Assign the Last host IP address from Network R subnet to G0/1...
-
Nike manufactures shoes and sportswear. How has the Internet changed the way this company communicates with its suppliers and retail customers?
-
Using the Steps for Solving an Equation, choose the next operation for solving the given equation 1. 3x + 2x = -x - 4 a. Add 4 to both sides. b. Subtract 2x from both sides. c. Add 3x and 2x. 2. 9 -...
-
Find the area of each rectangle. Recall that area = length # width. - mile mile
-
1. In the 2012 FIA Formula One World Championship, the Red Bull Racing-Renault team won 7/20 of all races. If the Red Bull driver Sebastian Vettel won 1/4 of the races, how many did Red Bull driver...
-
On June 30, 2020, Perfect Party Planners (PPP) had a \$40,000 balance in Accounts Receivable and a \(\$ 3,000\) credit balance in Allowance for Uncollectible Accounts. During July, PPP made credit...
-
How much interest revenue should Maritimes Ltd. accrue (N December 31, 2019? a. \(\$ 225\) b. \(\$ 450\) c. \(\$ 375\) d. Some other amount
-
This exercise continues the situation of exercise S4-7, in which Environmental Products ended the year 2019 with accounts receivable of \(\$ 80,000\) and an allowance for uncollectible accounts of...
Study smarter with the SolutionInn App