Question: This is question of nested branches and multiple alternative, Plz read the question carefully,, Use if statements if needed. It should follow the exact as
Exercise I: Sound level L in units of decibel (dB) is determined by L 20log Po where p is the pressure of the sound (in Pascal, abbreviated Pa), and po is a reference sound pressure equal to 20E-6 Pa. Write a Python program that reads a sound pressure p, computes the sound level using the above equation, and then prints the proper description from the list below Hearing damage Traffic on busy road Normal conversation Calm library Light leaf rustling Sound Level (in dB) 120 and above [90, 120) [60,90) 60) [0, 30) Sound level L in units of decibel (dB) determined by L = 20 log: --) where p is the pressure of the sound (in Pascals, abbreviated Pa), and Po is a reference sound pressure equal to 20 x 10 Pa (where L is O dB). Write a program that reads a sound pressure and a unit, either dB or Pa, and then prints the closest description from the list below. If the entered unit is "Pa", the program should compute the sound level first and then determine the closest corresponding description. If the unit is "dB the program should just determine the description Write a program that reads the income of a user and computes his her income taxes according to the following schedule. Your program should then display the income tax for the user * * * * 1% on the first S50.000 2% on the amount over $50,000 up to $75,000 3% on the amount over $75,000 up to $100,000 4.5% on the amount over $100,000 up to $500,000 6% on the amount over $500,000 Please enter the anount of your annual income:$135500 Your income tax is $3347.50 Figure 1: Sample run of Exercise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
