trip planner | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

trip planner

Hi people, i am having issues to solve this problem below, 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 I tried running this, // your code goes here console.log("3.75*60=255!)

6th Apr 2021, 2:27 PM
Matias Nicolas Elia
Matias Nicolas Elia - avatar
12 Answers
+ 8
Matias Nicolas Elia , before we are going to help you, you should have done a try by yourself, put it in playground and link it here. It does not help you if someone just posted a ready-to-use solution. this will not improve your coding skills or your problem solving ability. it is better to give some hints to the op. so please help us to keep sololearn what it was made for: A self-learning platform for coding with a great community. Thanks for your understanding!
6th Apr 2021, 3:03 PM
Lothar
Lothar - avatar
+ 1
Where does your doubt exactly lies bro?
6th Apr 2021, 2:44 PM
Vishnuvasan Srinivasan
Vishnuvasan Srinivasan - avatar
+ 1
Lothar A very good and promising advice to improve your skills!!! Kindly try it before asking it here.
6th Apr 2021, 3:04 PM
Vishnuvasan Srinivasan
Vishnuvasan Srinivasan - avatar
+ 1
What's the input?
6th Apr 2021, 3:05 PM
Vishnuvasan Srinivasan
Vishnuvasan Srinivasan - avatar
+ 1
Refer my code and change yours accordingly... The link which you provided is not getting opened up!!
6th Apr 2021, 3:10 PM
Vishnuvasan Srinivasan
Vishnuvasan Srinivasan - avatar
+ 1
Is that JAVA really??
6th Apr 2021, 3:13 PM
Vishnuvasan Srinivasan
Vishnuvasan Srinivasan - avatar
0
https://code.sololearn.com/c4w565YMywXa/?ref=app Here's my solution for your query in 'C'.
6th Apr 2021, 2:58 PM
Vishnuvasan Srinivasan
Vishnuvasan Srinivasan - avatar
6th Apr 2021, 3:04 PM
Matias Nicolas Elia
Matias Nicolas Elia - avatar
0
the output exp says 850 but i got 13500
6th Apr 2021, 3:05 PM
Matias Nicolas Elia
Matias Nicolas Elia - avatar
0
150
6th Apr 2021, 3:08 PM
Matias Nicolas Elia
Matias Nicolas Elia - avatar
6th Apr 2021, 3:12 PM
Matias Nicolas Elia
Matias Nicolas Elia - avatar
6th Apr 2021, 3:21 PM
Matias Nicolas Elia
Matias Nicolas Elia - avatar