Question: In C++ please On a piano, a key has a frequency, say fo. Each thigher key (black or white) has a frequency of fo
In C++ please
On a piano, a key has a frequency, say fo. Each thigher key (black or white) has a frequency of fo " r. where n is the distance (number of keys) from that key, and r is 2(1/12) Given an inital key frequency, output that frequency and the next 4 higher key frequencies. Ex: If the input is 440 (the A key near the middie of a piano keyboard), the output is: 440,466,164493,063523,251554.365 Note Use one statement to compute c=2(1/2) using the pow function (remember to include the cmath library). Then use that f in subsequent statements that use the formula tn=10r7 with n being 1,2,3, and finaly 4
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
