Declbels. Engineers often measure the ratio of two power measurements in decibels, or dB. The equation for the ratio of two power measurements in decibels is
$$
d B=10 \log _{10} \frac{P_{2}}{P_{1}}
$$
where $P_{2}$ is the power level being measured, and $P_{1}$ is some reference power level. Assume that the reference power level $P_{1}$ is 1 watt, and write a program that calculates the decibel level corresponding to power levels between 1 and 20 watts, in $0.5 \mathrm{~W}$ steps. Plot the dB-versus-power curve on a log-linear scale.