Question: How do you write this python code as a algorithm ? def decibel_test(distance, timber_loss): calculate the loss in decibels over a pre determined distance unique_number

How do you write this python code as a algorithm ?

def decibel_test(distance, timber_loss): """calculate the loss in decibels over a pre determined distance""" unique_number = 1.01993 rain_loss = 1.5 atmospheric_loss = rain_loss * distance decibel_loss = timber_loss + atmospheric_loss total_loss = decibel_loss * unique_number return total_loss print('distance in km') distance=float(input()) print('wood in metres') timber_loss = 90 * float(input()) DB_loss=decibel_test(distance,timber_loss) print('the total decibel loss is', DB_loss)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!