Please explain this. I didn't understand it. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Please explain this. I didn't understand it.

You need to plan a road trip. You are traveling at an average speed of 40 miles an hour. Given a distance in miles as input (the code to take input is already present), output to the console the time it will take you to cover it in minutes. Sample Input: 150 Sample Output: 225

26th Jan 2021, 10:13 PM
❤️😍Prerana😍❤️
❤️😍Prerana😍❤️ - avatar
4 Answers
+ 4
You are travelling at 40 mph There is 60 minutes in every hour, so this means you are travelling 40 miles every 60 minutes. If you travel 150 miles, how many minutes will it take to complete the journey
26th Jan 2021, 11:19 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 3
Thank u Rik Wittkopp🙏
27th Jan 2021, 10:29 AM
❤️😍Prerana😍❤️
❤️😍Prerana😍❤️ - avatar
+ 3
Thank u🙏Ollie Q
27th Jan 2021, 10:30 AM
❤️😍Prerana😍❤️
❤️😍Prerana😍❤️ - avatar
- 1
try this... 60/40 * 150 = 225 I might be wrong as i’m used to working in kilometers & don’t the the feet to miles conversion
26th Jan 2021, 10:39 PM
Ollie Q
Ollie Q - avatar