0

Please help me guys

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

27th Aug 2021, 3:41 PM
Aulerious Mtokale
Aulerious Mtokale - avatar
2 Answers
+ 5
Aulerious Mtokale , before we can help you, you should show us your attempt first. if you have not done a try by yourself upto now, please do so. Put your code in playground and link it here. Thanks!
27th Aug 2021, 3:45 PM
Lothar
Lothar - avatar
+ 1
function main() { var distance = parseInt(readLine(), 10); //your code goes here var speed = 40; var time = 150/40=3.75*60; return time; } main(225); }
27th Aug 2021, 3:59 PM
Aulerious Mtokale
Aulerious Mtokale - avatar