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 06:50
Match the personality traits with their description
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Jennifer has to set up a network in a factory with an environment that has a lot of electrical interference. which cable would she prefer to use? jennifer would prefer to use because its metal sheath reduces interference.
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
question
Computers and Technology, 23.06.2019 15:30
The processing of data in a computer involves the interplay between its various hardware components.
Answers: 1
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