Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Java program import javautilScanner public class SoundPower public static void mainStrin... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Java Concepts Late Objects

Authors: Cay S. Horstmann

3rd Edition

1119186714, 978-1119186717

More Books

Students also viewed these Programming questions

Question

Write a C Program to Check Leap Year using function

Answered: 1 week ago

Question

Using recursion, compute the sum of all values in an array.

Answered: 1 week ago