- 1

Can anyone explain or tell me the ans of 13 code project plz

22nd Nov 2021, 5:21 AM
Hala Yasser
Hala Yasser - avatar
31 Antworten
+ 6
Sure, here's your code function main() { var distance = parseInt(readLine()); x = (distance/40)*60 console.log(x); }
23rd Nov 2021, 12:37 PM
Himanshu
Himanshu - avatar
+ 3
Please add more details. Do you really expect us to answer this without knowing which course or challenge you're talking about. also, mention your code for reference.
22nd Nov 2021, 6:07 AM
zexu knub
zexu knub - avatar
+ 2
I think you have problem working the minutes out given a particular distance. Formula (distance/speed)*60 to give time in minutes as the spec requires.
23rd Nov 2021, 8:05 AM
mushtaq ali
+ 2
All the credits to ‘Himanshu not foond’… here’s the asnwer; //your code goes here x = (distance/40)*60; console.log(x); Ps. my own code wasn’t working also, and I can’t explain why this is working :( Maybe I will post my code also and hopefully other can help me what I did wrong ;)
2nd Feb 2022, 10:44 PM
André van Campenhout
André van Campenhout - avatar
+ 1
Hala Yasser would you Stop already.
26th Nov 2021, 4:04 PM
zexu knub
zexu knub - avatar
0
Post your attempt here
22nd Nov 2021, 6:07 AM
MATOVU CALEB
MATOVU CALEB - avatar
0
Java script : trip planner
22nd Nov 2021, 6:09 AM
Hala Yasser
Hala Yasser - avatar
0
Show your code u have written for that project
22nd Nov 2021, 6:10 AM
MATOVU CALEB
MATOVU CALEB - avatar
0
function main() { var distance = parseInt(readLine(), 10); //your code goes here }
22nd Nov 2021, 6:11 AM
Hala Yasser
Hala Yasser - avatar
0
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 This is the code
22nd Nov 2021, 6:13 AM
Hala Yasser
Hala Yasser - avatar
0
Hala Yasser You don't need to copy-paste the whole problem in the comment. Where is your attempt? show us that.
22nd Nov 2021, 6:18 AM
zexu knub
zexu knub - avatar
0
I don't know how i am new here
22nd Nov 2021, 6:19 AM
Hala Yasser
Hala Yasser - avatar
22nd Nov 2021, 6:22 AM
Hala Yasser
Hala Yasser - avatar
0
Like that
22nd Nov 2021, 6:23 AM
Hala Yasser
Hala Yasser - avatar
0
But I don't know how to attempt
22nd Nov 2021, 6:35 AM
Hala Yasser
Hala Yasser - avatar
0
I learn it again but if you know the ans why you are not telling the ans
22nd Nov 2021, 6:43 AM
Hala Yasser
Hala Yasser - avatar
0
Or give me hints
22nd Nov 2021, 6:44 AM
Hala Yasser
Hala Yasser - avatar
0
Thank you soo much
22nd Nov 2021, 7:00 AM
Hala Yasser
Hala Yasser - avatar
0
zexu knub seems like we have a fiesty one over here, huh?
22nd Nov 2021, 4:48 PM
Angel N
Angel N - avatar
0
Sorry mam 🙂
23rd Nov 2021, 10:38 AM
Swaraj Rathod