- 1
Can anyone explain or tell me the ans of 13 code project plz
31 Antworten
+ 6
Sure, here's your code
function main() {
var distance = parseInt(readLine());
x = (distance/40)*60
console.log(x);
}
+ 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.
+ 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.
+ 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 ;)
+ 1
Hala Yasser would you Stop already.
0
Post your attempt here
0
Java script : trip planner
0
Show your code u have written for that project
0
function main() {
var distance = parseInt(readLine(), 10);
//your code goes here
}
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
0
Hala Yasser You don't need to copy-paste the whole problem in the comment. Where is your attempt? show us that.
0
I don't know how i am new here
0
Like that
0
But I don't know how to attempt
0
I learn it again but if you know the ans why you are not telling the ans
0
Or give me hints
0
Thank you soo much
0
zexu knub seems like we have a fiesty one over here, huh?
0
Sorry mam 🙂