Problem 49077. Velocity Conversion
Solution Stats
Problem Comments
Solution Comments
-
4 Comments
Use 1.60934 as conversion factor or else it will have issues
Dear creator,
I am writing this message because, for some reason, at the time I coded the correct solution, for some reason 1 of the tests fails every time, despite the solution is exactly the same.
If you need any proof, I can enclose a screenshot to prove it.
Many thanks for your time,
Yours sincerely,
R.G.
While it is helpful to provide a conversion factor, the solution here is to round the result to the fourth decimal place, since that is what is being checked. This is now stated in the problem description.
Thank you for providing the required precision of the solution. However, the precision of the conversion factor needs to be stated or else the exact value needs to be used for this conversion.
5280(miles to feet)*0.3048(feet to meters)/1000(meters to km) is exactly equal to 1.609344 not 1.60934
Problem Recent Solvers178
Suggested Problems
-
Sum all integers from 1 to 2^n
11375 Solvers
-
959 Solvers
-
Arrange vector in ascending order
696 Solvers
-
477 Solvers
-
4072 Solvers
More from this Author180
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!