Question: Write a C# program that reads a value and a unit, either dB or Pa, and then prints the closest description from the list below.

Write a C# program that reads a value and a unit, either dB or Pa, and then prints the closest description from the list below.

Sound level L in units of decibel (dB) is determined by L = 20 log10(p/p0)  where p is the sound pressure of the sound (in Pascals, abbreviated Pa), and p0 is a reference sound pressure equal to 20 x10–6 Pa (where L is 0 dB).
The following table gives descriptions for certain sound levels.


Threshold of pain Possible hearing damage Jack hammer at 1 m Traffic

Threshold of pain Possible hearing damage Jack hammer at 1 m Traffic on a busy roadway at 10 m Normal conversation Calm library Light leaf rustling 130 dB 120 dB 100 dB 90 dB 60 dB 30 dB O dB

Step by Step Solution

3.41 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Java program import javautilScanner public class SoundPower public static void mainStrin... View full answer

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 Programming Questions!