subject

On a piano, each key has a frequency, and each subsequent key (black or white) is a known amount higher. ex: the a key above middle c key has a frequency of 440 hz. each subsequent key (black or white) has a frequency of 440 * rn, where n is the number of keys from that a key, and r is 2(1/12). given an initial frequency, output that frequency and the next 3 higher key frequencies. if the input is 440, the output is: 440 493.883 523.251 554.365.
note: include one statement to compute r = 2(1/12) using the pow function, then use r in the formula fn = f0 * rn. (you'll have three statements using that formula, different only in the value for n).
(note 4/17/17: a student noticed that our example and test cases are skipping n=1, starting instead with n=2. we won't change the lab right now, so just assume you've been asked for steps n=2, 3, and 4.)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:10
Consider a direct-mapped cache with 216 words in main memory. the cache has 16 blocks of 8 words each. it is a word-addressable computer (rather than a byte-addressable computer which we normally discuss). (a) how many blocks of main memory are there? (b) what is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, cache block, and block offset fields (if they apply)? (c) to which cache block will the memory reference db6316 map?
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
How should you specify box sizes on a web page if you want the boxes to vary according to the font size of the text they contain? a. in pixels b. in inches c. as percentages d. in em units
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
How do i get rid of my member ship for
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
If you combine two cells into one, what action are you performing? a.  adding a new row or column      b.  splitting the cells      c.  removing a new row or column      d.  merging the cells
Answers: 2
You know the right answer?
On a piano, each key has a frequency, and each subsequent key (black or white) is a known amount hig...
Questions
question
English, 19.11.2020 18:50
question
Mathematics, 19.11.2020 18:50
question
Biology, 19.11.2020 18:50
question
Mathematics, 19.11.2020 18:50
question
English, 19.11.2020 18:50
Questions on the website: 13722360