- 4
Pls how do I solve different cases on my project challenge
Solving different case challenge
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.
+ 8
Please link your code and mention which task it is
+ 4
You need to use the distance in your calculation. Don't hard-code the distance with "590"
0
It is a trip planner code challenge and I solved test case 1 but unable to solve other cases
0
function main() {
var distance = parseInt(readLine(), 10);
//your code goes here
var x=(590/40)*60;
console.log(x);
}