0

Is there a wrong in this question in the part of explanation in coach code?

A coyote is chasing a roadrunner and they start out 50 feet apart. If you know how fast they are both traveling, and how far the roadrunner is from safety, determine whether or not the coyote is able to catch the roadrunner. Both animals and the roadrunner's safe place are on a straight line. Task: Determine whether or not the roadrunner made it to safety. Input Format: Three integer values, the first value represents the distance the roadrunner is from safety, then the roadrunner's speed (feet/second) and then the coyote's speed (feet/second). Output Format: A string that says 'Meep Meep' if the roadrunner made it, or 'Yum' if the coyote caught up to the roadrunner. Sample Input: 10 5 20 Sample Output: Meep Meep explanation The roadrunner is safe because it took them 2 seconds to get to safety while the coyote only got 30 feet closer to the roadrunner in that same amount of time. I think the coyote only must has arrived in 20 feet to the roadrunner not 30 feet. Can anyone explain this

13th Dec 2023, 5:59 AM
safir safir1
safir safir1 - avatar
3 Respuestas
+ 3
It starts with the Coyote 50 feet away, roadrunner is (in this example) 10 feet away from safety. Or || Safety >Roadrunner 》Coyote 1 second later || Safety >Roadrunner 》Coyote 2 seconds later || Safety >Roadrunner 》Coyote Does that help?
13th Dec 2023, 8:31 AM
Ausgrindtube
Ausgrindtube - avatar
+ 2
Happy to be able to help safir safir1 . Enjoy your coding journey!
13th Dec 2023, 12:11 PM
Ausgrindtube
Ausgrindtube - avatar
+ 1
Thanks 🙏 mentor I wrote this program in c#
13th Dec 2023, 9:11 AM
safir safir1
safir safir1 - avatar