- 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
4 RĂ©ponses
+ 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
+ 3
Thank u Rik Wittkoppđ
+ 3
Thank uđOllie Q
- 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