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 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...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Java Concepts Late Objects
Authors: Cay S. Horstmann
3rd Edition
1119186714, 978-1119186717
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App