1.2 - Lab 2

In this program we will convert from miles to kilometers! You are given a variable distanceInMiles and we want to print the value of it when converted to kilometers. 1 mile roughly equals 1.6 kilometers You need to output a single line containing the following statement
distanceInMiles miles equal distanceInMiles * 1.6 kilometers! You will need to replace distanceInMiles above with the value of the variable, for example

  1. When distanceInMiles = 10.0, you should print 10.0 miles equal 16.0 kilometers!
  2. When distanceInMiles = 15.0, you should print 15.0 miles equal 24.0 kilometers!
  3. When distanceInMiles = 20.0, you should print 20.0 miles equal 32.0 kilometers!

Hint: you can always mix System.out.print() with System.out.println() to print different things in the same line

Test your solution here
when it passes, copy it and submit it here so your coach can grade it.