I am very new to Python and am about three weeks behind due to textbook problems. I am having a problem with one programming exercise. I have no idea how to even begin writting a program to determine the distance to a lightning strike based on the time elapsed between the sound of thunder and the flash of lightning. (I know that the time interval between the flash and the sound should be multiplied by 1100 ft/second for the speed of sound, but that is all!) If someone can help me, I would greatly appreciate it. I have continued working through other programs, but this one has me stuck. H-E-L-P, Please!!!

So lightning strikes and you count off let's say ten seconds before you hear the thunder. Sound travels at 1100 ft/second, so the distance will by 10 times 1100ft.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.