0

In javasript after module quiz 2 there is a question on trip planner and i dont understand....please help

15th Jan 2021, 9:28 AM
Kevin Kiarie
Kevin Kiarie - avatar
6 Respuestas
+ 2
You are supposed to write a code that will take a variable input of distance, and produce an output of minutes it would take if traveling at 40 mph. This means that your input must be flexible, and the rest of your code must be able to process that input correctly
15th Jan 2021, 10:28 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Kevin Kiarie yes ,you have distance as input ,now in that main function convert it output final result.
15th Jan 2021, 9:48 AM
Abhay
Abhay - avatar
+ 1
Thanks.....Abhay .....
15th Jan 2021, 9:57 AM
Kevin Kiarie
Kevin Kiarie - avatar
0
Speed is 40 miles per hour ,so 150 miles will be done in 150/40=3.75 hours which is equal to 225(3.75*60) minutes. So what exactly you don't understand about it .
15th Jan 2021, 9:36 AM
Abhay
Abhay - avatar
0
That i understood....its on the next slide there is the code then the result....that is the bit i didnt quite get
15th Jan 2021, 9:39 AM
Kevin Kiarie
Kevin Kiarie - avatar
0
Are you supposed to write a code that will evaluate that question or??
15th Jan 2021, 9:40 AM
Kevin Kiarie
Kevin Kiarie - avatar