- 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
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?
0
What do I need to do?