akosiraff

MilesToKilometeres JAVA

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