The note D above middle C has a frequency of 294 cycles per second, and the note E has a

frequency of 330 cycles per second. A driver of a moving car sounds the horn, which emits an E
tone, but a stationary observer hears a D tone. Calculate the speed at which the car is moving,
and state whether it is travelling towards or away from the observer.
I got 37.42 however it's supposed to be

Supposed to be 41.6m/s. And how can I tell if it's moving towards or away from the observer?

If you hear a lower frequency, longer wavelength, it is moving away

294 / 330= v/(v+343.7)
http://hyperphysics.phy-astr.gsu.edu/hbase/Sound/dopp.html

I agree with 41.6 m/s if sound velocity is 343.7 m/s

To solve this problem, we can use the Doppler effect formula, which relates the observed frequency of a sound wave to the source frequency and the relative velocity between the source and observer. The formula is given by:

f' = f( (v + vo) / (v + vs) )

Where:
f' = observed frequency
f = source frequency
v = speed of sound in air
vo = observer's velocity
vs = source's velocity

In this case, we have f = 330 Hz (for the E tone) and f' = 294 Hz (for the observed D tone).

Let's assume that the observer is stationary, so vo = 0.

The formula becomes:

294 = 330 * (v / (v + vs))

To find the speed of the car (vs), we can rearrange the equation:

vs = (330 * v) / (294 / 330 - 1)

Now, we need the speed of sound in air (v). The speed of sound can vary depending on various factors such as temperature, humidity, and altitude. However, a generally accepted approximate value is around 343 meters per second (m/s) at 20 degrees Celsius.

Substituting v = 343 m/s into the equation, we can calculate vs:

vs = (330 * 343) / (294 / 330 - 1) = 37.42 m/s

So, you were correct in calculating the speed of the car as 37.42 m/s.

To determine whether the car is moving towards or away from the observer, we need to consider the sign of the velocity. In this case, since the observer perceives a lower frequency (D) than the actual source frequency (E), it means that the car is moving away from the observer.

Thus, the car is moving away from the stationary observer at a speed of 37.42 m/s.