Write a program which inputs miles (a double) and displays the equivalent number of kilometers.
Tutorial Details:
Write a program which inputs miles (a double) and displays the equivalent number of kilometers. Assume there are 1.61 kilometers in a mile. After processing one value, go back and get the next value. Print an error message if the input value is negative.
Rate Tutorial: http://www.roseindia.net/java/java-tips/examples-introductory/dialog/q-pr-milesToKm.shtml
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: Programming: Convert Miles to Kilometers
View Tutorial: Programming: Convert Miles to Kilometers
Related
Tutorials:
|