In javasript after module quiz 2 there is a question on trip planner and i dont understand....please help
6 Answers
New Answer1/15/2021 9:28:39 AM
Kevin Kiarie6 Answers
New AnswerKevin Kiarie yes ,you have distance as input ,now in that main function convert it output final result.
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
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 .
That i understood....its on the next slide there is the code then the result....that is the bit i didnt quite get
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message