Java Program that Converts Distance in Meters to Kilometers
Not what you're looking for?
Write and run a Java program that, given a distance in meters, outputs that distance in kilometers rounded to the nearest whole kilometer. For example, given 1100m the output will be 1km, and given 1900m the output will be 2km. Please comment the code very detailed.
Purchase this Solution
Solution Summary
Write and run a Java program that, given a distance in meters, outputs that distance in kilometers
Solution Preview
import java.io.*;
/**
* Created by Abdun Mahmood
* Date: Aug 10, 2006
* Time: 11:55:21 PM
* To change this template use File | Settings | File Templates.
*/
public class distanceConv {
static double kilo;
static double meter;
public static void main( String[] args){
...
Purchase this Solution
Free BrainMass Quizzes
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Basic UNIX commands
Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.
Word 2010: Tables
Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.