Retired
Everlasting Echo (retired)
22anusha.j
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:
d1
: The distance between the cliffs (in meters)d2
: The distance between the person and the nearest cliff (in meters)
It should return the following:
- After how long the first echo will be heard (in seconds)
- After how long the second echo will be heard (in seconds)
- After how long the third echo will be heard (in seconds)
Notes
- Return the required information in the form of a tuple
- Take the speed of sound in air as 340 m/s
- Do NOT round your answers
Good Luck!
Mathematics
Physics
Logic
Similar Kata:
Stats:
Created | Mar 2, 2024 |
Warriors Trained | 27 |
Total Skips | 0 |
Total Code Submissions | 152 |
Total Times Completed | 22 |
Python Completions | 22 |
Total Stars | 1 |
% of votes with a positive feedback rating | 68% of 11 |
Total "Very Satisfied" Votes | 5 |
Total "Somewhat Satisfied" Votes | 5 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 11 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |