Question: java code for this On a piano, a key has a frequency, say f 0 . Each higher key ( black or white ) has

java code for this
On a piano, a key has a frequency, say f0. Each higher key (black or white) has a frequency of f0* rn, where n is the distance (number of keys) from that key, and r is 2(1/12). Given an initial key frequency, output that frequency and the next 4 higher key frequencies.
Output each floating-point value with two digits after the decimal point.
Ex: If the input is:
440.0
(which is the A key near the middle of a piano keyboard), the output is:
440.00466.16493.88523.25554.37

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!