Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(use python)The following table lists the sound level in decibels for several common noises Noise Decibel level (dB) Jackhammer 130 Gas lawnmower 106 Alarm clock

(use python)The following table lists the sound level in decibels for several common noises

Noise Decibel level (dB)
Jackhammer 130
Gas lawnmower 106
Alarm clock 70
Quiet room 40

Write a full program that reads a sound level in decibels from the user. If the user enters a decibel level that matches one of the noises in the table then your program should display a message containing only that noise. If the user enters a number of decibels between the noises listed then your program should display a message indicating which noises the level is between. Ensure that your program also generates reasonable output for a value smaller than the quietest noise in the table, and for a value larger than the loudest noise in the table.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Finance The Role Of Data Analytics In Manda Due Diligence

Authors: Ps Publishing

1st Edition

B0CR6SKTQG, 979-8873324675

More Books

Students also viewed these Databases questions