Converter
class that can currenly
be used to convert a double
-valued speed in mi/hr to
a double
-valued speed in km/hr. You must now modify
this class.
The system must satisfy the following physical requirements:
PR-1
All constants must be public static final
class constants
(i.e., must be accessible outside of the class,
must not be declared in a function/method, and it must not be possible
to change them after they are initialized).
The system must satisfy the following operational requirements:
OR-1
The class must contain an int
-valued constant
named FEET_PER_MILE
that is assigned the value
5280.
OR-2
The class must contain a "function" named toMiles()
that is passed an int
-valued distance (in ft)
and returns the equivalent double
-valued distance (in mi).
Copyright 2013