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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 12:00, Cocco
Which of the following does 3d animation create an illusion of on the screen? a. depth b. emotion c. length d. dialogue
Answers: 1
image
Computers and Technology, 22.06.2019 23:00, nicog94
In which part of a professional email should you try to be brief, but highly descriptive?
Answers: 1
image
Computers and Technology, 23.06.2019 11:00, abdulbasharee99
In the context of the box model, what is the difference between a margin and a padding? a. a padding lies outside a box border, while a margin lies inside it. b. a padding lies inside a box border, while a margin lies outside it. c. a padding can be adjusted independently, while a margin depends on the size of its box. d. a padding depends on the size of its box, while a margin can be adjusted independently.
Answers: 3
image
Computers and Technology, 23.06.2019 14:00, shawn423
How are stop motion special effects in animated films created
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 in other subjects:

Konu
English, 22.10.2020 20:01
Konu
Mathematics, 22.10.2020 20:01
Konu
Mathematics, 22.10.2020 20:01