Output that frequency and the next 3 higher key frequencies

Assignment Help Basic Computer Science
Reference no: EM131943430

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.)

Reference no: EM131943430

Questions Cloud

How stations access the medium in ieee 802 : Describe the main difference between how stations access the medium in IEEE 802.11 in ad hoc mode and in a Bluetooth piconet.
Analyze the cognitive biases discussed in the paper : Analyze the cognitive biases discussed in the paper attached and suggest your solutions to minimize their effect on the Decision making ability?
What are the goals and objectives for the organization : Is the industry growing? What is the market share for the organization that they represent? Who is the dominant player in the marketplace?
What amount does correspond to in today dollars : How much can she withdraw at the end of the first year of her retirement? What amount does this correspond to in today’s dollars?
Output that frequency and the next 3 higher key frequencies : 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.
Output calories burned for men and women : Given age (years), weight (pounds), heart rate (beats per minute), and time (minutes), output calories burned for men and women.
How much will you have for down payment at the end of year : Your expected annual return during the saving period is 6%. How much will you have for a down payment at the end of year 3?
What are the features of group policy : What are the features of Group Policy provided by Windows Server 2012 R2? Whayt are the 3 new features in 2012 R2 is important?
Identify opportunities for alliances with other agencies : Identify opportunities for alliances with other agencies or organizations. State why the alliances are important.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  How to protect yourself from computer crimes

Evaluate how vulnerable or susceptible society is today, with respect to this computer crime.

  What does iso stand for

What does ISO stand for? What are the five areas of network management defined by the ISO?

  Understanding of storage classes and scope rules

It amounts to a "divide and conquer" approach to problem solving. This needs sound understanding of storage classes and scope rules. Response and or thoughts?

  Write a function named daycount() that accepts a month

Write a function named daycount() that accepts a month, day, and year as its input arguments.

  Calculate the input offset voltage after offset compensation

In the circuit of Fig. 14.32, the amplifier has an input capacitance (between X and Y ) equal to Cin. Calculate the input offset voltage after offset compensation.

  Drive operating system design

What are the four factors that drive operating system design?

  Simple model for floating-point representation

Assume we are using the simple model for floating-point representation as given in the text ( the representation uses a 14-bit format, 5 bits for the exponent with a bias of 16, a normaliezed mantissa of 8 bits and a single sign bit for the number..

  What must the liquidating dividend be

At the end of the four years, the company will also pay out a liquidating dividend. If the discount rate is 12 percent, and the current share price is $75.

  Disadvantages of byod in the workplace

Discuss the advantages and disadvantages of BYOD in the workplace. Include discussion of the information security implications of BYOD in the workplace

  Design a suitable microchannel cooling system

Also, compare the temperature difference achievable with the microchannel design with a conventional design using water-forced convection cooling in a channel covering the chip surface.

  What is wrong with how gold coast advertising measures

1. What is wrong with how Gold Coast Advertising measures its quality? Explain why Gold Coast should ask its customers about how they define quality.

  Considerations for hobbies and possible hobby losses

Discuss planning considerations for hobbies and possible hobby losses. Discuss the criteria for determining whether an activity is hobby or a trade or business

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd