- 4

Pls how do I solve different cases on my project challenge

Solving different case challenge

31st Oct 2021, 10:26 AM
Noibisjunior
Noibisjunior - avatar
7 ответов
+ 1
While solving any problem we should have basic knowledge about the concept we are using in it. The problem says find time in minutes given the speed per hour and we are scanning the distance.we are given two parameters we have to find the third. 1.Use var time=distance/speed; 2.Later take another variable and store time*60; in it to convert it into minutes 3.Print the variable.
2nd Nov 2021, 3:32 AM
Reshma
+ 8
Please link your code and mention which task it is
31st Oct 2021, 10:38 AM
Lisa
Lisa - avatar
+ 4
You need to use the distance in your calculation. Don't hard-code the distance with "590"
31st Oct 2021, 3:57 PM
Lisa
Lisa - avatar
0
It is a trip planner code challenge and I solved test case 1 but unable to solve other cases
31st Oct 2021, 3:24 PM
Noibisjunior
Noibisjunior - avatar
31st Oct 2021, 3:29 PM
Noibisjunior
Noibisjunior - avatar
0
function main() { var distance = parseInt(readLine(), 10); //your code goes here var x=(590/40)*60; console.log(x); }
31st Oct 2021, 3:30 PM
Noibisjunior
Noibisjunior - avatar