Question

write a python program OR to calculate the thickness and difference between the surface of the...

write a python program OR to calculate the thickness and difference between the surface of the ocean to the bottom of the ocean.

please include comments, thank you

0 0
Add a comment Improve this question Transcribed image text
Answer #1

v=1507

#v is the speed of sound in water, it is always 1507m/s

t=int(input("Enter the Time taken in seconds "))

# we take the input t in seconds as we must maintain similar SI Units for all variables.

#the input is first converted into integer format so that we can apply the multiplication operation.

d=v*(0.5*t)

print(d," meters is the depth of the ocean, given that it takes time of ",t," seconds")

=========================================================================

Your code on the compiler:

Expected output:

Add a comment
Know the answer?
Add Answer to:
write a python program OR to calculate the thickness and difference between the surface of the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT