Question: An important phenomenon in acoustics is the Doppler Effect, which is the apparent change in the frequency of a sound wave due to the relative

An important phenomenon in acoustics is the Doppler Effect, which is the apparent change in the frequency of a sound wave due to the relative motion of the source, receiver, or both. We are interested in writing a C++ Function that computes the frequency of the sound wave heard by the receiver.

The relationship is given by this formula:

An important phenomenon in acoustics is the Doppler Effect, which is the

where

fr = the frequency of the sound wave heard by the listener (standard units: Hz)

fs = the frequency of the sound wave at the source (standard units: Hz)

vw = the velocity of the sound wave (the speed of sound is 340 m/s)

vr = the velocity of the receiver (standard units: m/s)

vs = the velocity of the source (standard units: m/s)

Finally, we follow these rules for the signs:

When the source is moving toward the receiver, the sign on vs is negative.

When the source is moving away from the receiver, the sign on vs is positive.

When the receiver is moving toward the source, the sign on vr is positive.

When the receiver is moving away from the source, the sign on vr is negative.

Write a function that computes and returns fr . You'll need three parameters: fs , vr , and vs .

Since the speed of sound is a constant, it does not need to be a parameter.

vw, t vs

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!