subject

Or this task you will create a program to answer the age old question 'What is the airspeed velocity of an unladen swallow?". Watch this video if you are u
ne importance of this information.
ne airspeed velocity of a bird can be calculated using an equation based on the Strouhal Number. From this information we can determine that the airsp
elocity of a bird (0) can be calculated from the frequency (f) at which the bird beats its wings multiplied by the amplitude in metres (A) of each wing stro
y the Strouhal Number (s). This is shown in the following equation:
U= fA
or example: A Zebra Finch beats its wings at a frequency of 27 Hz (f) (Hz ['hertz] means beats per second). The amplitude of this stroke is 11 cm (A), equ
1.11 m. If we assume a Strouhal Number of 0.33 for this flight we get an airspeed (U) of 9 meters per second, as shown in the following steps:
U= fA/S
. U = 27 x 0.11/0.33
. U = 9 m/s
1. Create a program named Airspeed, which will use the Scanner to read an input value from the user (so add import java. util. Scanner; at the top
2. Declare a method named airspeedVelocity. This method will have parameters for frequency and amplitude, both of type double, and it will return a
value.
3. Inside the method, declare a constant for the Strouhal Number with the value 0.33. For example, final double STROUHAL_NUM = 0.33;
4. The main method will print 'African Swallow', and calculate the airspeed based on a frequency of 15 Hz and amplitude of 21 cm, and display the resu
5. The main method will also print 'European Swallow, calculate the airspeed based on a frequency of 14 Hz and an amplitude of 22 cm, and display th
6. The main method should then ask the user to enter a frequency and an amplitude and print the airspeed based on the values entered.
Hint: The user will enter the frequency in Hz and the amplitude in cm. Convert the amplitude to meters by dividing the user's input by 100.
Big
FARM

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:00
11. is the ability to understand how another person is feeling. a. authority b. sympathy c. empathy d. taking a stand
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
Suppose an astronomer discovers a large, spherical-shaped body orbiting the sun. the body is composed mostly of rock, and there are no other bodies sharing its orbit. what is the best way to categorize this body? a. planet b. moon c. comet d. asteroid
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 2
You know the right answer?
Or this task you will create a program to answer the age old question 'What is the airspeed velocity...
Questions
Questions on the website: 13722363