Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/milestokilometeres-java/
- Write a program that allows the user to enter a distance in miles at the keyboard and
- then the program should display the same distance measurement converted to
- kilometers on the screen with a description. Use the following formula to do the
- miles to kilometers conversion:
- Number of miles times 1.609 equals number of kilometers.
- You should check that the user has entered a positive number or zero for the number
- of miles. This value may contain a decimal point and digits following the decimal
- point. Round your output numbers to 3 decimal digits. If the user enters a negative
- value, alert the user with an error message.
- Download: http://solutionzip.com/downloads/milestokilometeres-java/
Advertisement
Add Comment
Please, Sign In to add comment