- 1

Can someone explain this project clearly?

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

16th Jan 2022, 2:36 AM
Sam
2 Answers
+ 3
Hi Sam What you need is some maths: 150/40 *60 This is because distance / speed = time. Then multiplying it by 60 will convert the result to minutes. Does this help?
16th Jan 2022, 3:27 AM
Ollie Q
Ollie Q - avatar
0
What do I need to do?
16th Jan 2022, 2:37 AM
Sam