0
How to solve this?
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 Respostas
+ 2
Sharjeel Faiq
Hint:
The average speed is 40 miles an hour so you just need to divide given input by 40 to get hours and if you get hours then convert it into minutes.
I hope you know how to convert hours to minutes.
+ 1
Use formula given below to solve:
time = distance/speed
Hint: Remember to convert the time from hours to minutes.
======================
Refer the below links:
https://forum.freecodecamp.org/t/javascript-trip-planner-challenge/435322
https://www.coursehero.com/tutors-problems/Computer-Science/28457660-I-am-working-with-JavaScript-I-am-planning-a-road-trip-I-am-travelin/#:~:text=a%20road%20trip.-,I%20am%20traveling%20at%20an%20average%20speed%20of%2040%20miles,inputted%20distance%20it%20in%20minutes.&text=Explanation%3A%20It%20will%20take%20150,3.75*60%20%3D%20225%20minutes.
Hope this helps.
Note:
1. Please always show your attempts to solve the code question/ problem for what you've asked here at Discuss Section.
2. Use searchbar before asking any question here.
https://www.sololearn.com/Discuss/2645103/i-need-help-with-trip-planner-project
0
here at SoloLearn we just love doing assignments and homework for people. We get so excited about writing code for people who are too lazy, stupid, or entitled to do it for themselves. Please post your bank account details so that we can also send you money to show our appreciation at being permitted to write programs for you.
0
The comment before me AND:
Answer of that multiplied by 60. Express that using what you've learn recently on Javascript