Retired

Everlasting Echo (retired)

Description:

Background

A person standing between two cliffs claps his hands. How long until he hears the echo of the clap? And the second echo? Third echo?

To answer this question, Johny decides to write a function. However, he can't seem to figure out how!

Will you help him?

Task

Write a function echo_time which accepts the following parameters:

  1. d1 : The distance between the cliffs (in meters)
  2. d2 : The distance between the person and the nearest cliff (in meters)

It should return the following:

  1. After how long the first echo will be heard (in seconds)
  2. After how long the second echo will be heard (in seconds)
  3. After how long the third echo will be heard (in seconds)

Notes

  1. Return the required information in the form of a tuple
  2. Take the speed of sound in air as 340 m/s
  3. Do NOT round your answers

Good Luck!

Mathematics
Physics
Logic

More By Author:

Check out these other kata created by anusha.j

Stats:

CreatedMar 2, 2024
Warriors Trained27
Total Skips0
Total Code Submissions152
Total Times Completed22
Python Completions22
Total Stars1
% of votes with a positive feedback rating68% of 11
Total "Very Satisfied" Votes5
Total "Somewhat Satisfied" Votes5
Total "Not Satisfied" Votes1
Total Rank Assessments11
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • anusha.j Avatar
Ad