Question: Write a function distance) that takes as input a number: the time elapsed (in seconds) between the flash and the sound of thunder. Your function
Write a function distance) that takes as input a number: the time elapsed (in seconds) between the flash and the sound of thunder. Your function should return the distance to the lightning strike in kilometers. The speed of sound is approximately 340:29 meters per second; there are 1000 meters in one kilometer >>> distance(3)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
