1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
stealth61 [152]
4 years ago
14

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 mid

dle 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).
Computers and Technology
1 answer:
lora16 [44]4 years ago
7 0

Answer:

sample output

Enter f0 = 440

440.0,466.1637615180899, 493.8833012561241,

523.2511306011974,  554.3652619537443

Explanation:

import math                                 // math library  

def RaiseToPower():                 //  RaiseToPower method

 r = math.pow(2,1/12)               //r = 2^(1/12)

f0 = float(input('Enter f0 : '))     //input from user

                                               

//a key has a frequency,sy f0

                                                                                                                                     

print(f0,end=' ')                      //Display statement

 for n in range(1,5):                //Iterate the loop up to  the next 4 higher key Hz

n = f0 * math.pow(r,n)         //calculate the fn value

print(fn,end=' ')                   //Display statement

 RaiseToPower()                //Call RaiseToPower method  

                                         

 

         

     

       

You might be interested in
Need this!!
Galina-37 [17]

Answer

Peer-to-peer network

Explanation

Social media video sharing networks a platform which is an entertainment based where members can share videos in a site. it allows easy integration with other social networking platforms to share and watch videos. To start  a social media video sharing network, Rebecca  is required to set up a Peer-Peer Network.

Peer-Peer network is created when two or more computers are connected and they are sharing resources without going through separate servers. That is a couple of computers are  connected via a Universal Serial Bus to transfer files.


3 0
4 years ago
Read 2 more answers
Video digitization is the process of
Nonamiya [84]

Answer:

converting analog information into binary form, which can be more easily edited and shared

Explanation:

Digitization is conversion of data into digital format. Data is converted into small piece of storing unit called bits.  

Video digitization is the process of analog to digital conversion of video-graphic information. Analog signal is sampled based on its amplitude at uniformly distributed time period and then converted into binary data(bits) which is called digital data.

5 0
3 years ago
Read 2 more answers
Explain in your own words why main memory is constrained in a mobile device
iren [92.7K]

Answer:

because it stores the data and downloads and prevent overheating  

Explanation:

3 0
3 years ago
I was just called a man in a wig ugh <br><br> Any tips for doxxing someone?
kondaur [170]

Answer:

Explanation:

hope this help

6 0
3 years ago
Which idea generation method involves keeping ideas in sight and well-organized?
Elza [17]
I believe that it would be mind mapping
3 0
3 years ago
Read 2 more answers
Other questions:
  • Let's say that you handle the IT systems administration for your company. There's a server inside of your organization that chec
    14·1 answer
  • Résumés for teenagers and young adults typically consist of<br> (Apex)
    11·2 answers
  • Write a program that extracts the last three items in the list sports and assigns it to the variable last. Make sure to write yo
    9·1 answer
  • PLEASE HELP ASAP IT'S DUE TODAY! WILL GIVE BRAINLIEST, FIVE STARS, AND THANKS!! PLEASE HELP!
    12·1 answer
  • Small text files used by websites to track potential customers' visits to a website and provide details on how the customer has
    11·1 answer
  • Do you think we could use mathematical operators on string values rather than integers or floats? Explain.
    12·1 answer
  • Write an algorithm (pseudo-code) that takes an unsorted list of n integers and outputs a sorted list of all duplicate integers.
    6·1 answer
  • What type of pointing device is often used by artists, and why is it ideal for artists?​
    12·1 answer
  • Write a c++ program to print even numbers from 1 to 20​
    15·1 answer
  • Identify the correctly constructed ALTER TABLE statement to add a UNIQUE constraint to the column customer_number with the const
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!