JMU
logoDukeDash.png
Software Requirements Specification: Converter


Introduction
You have an existing Converter class that can currenly be used to perform various cconversions. You must now modify this class.
Modifications

The system must satisfy the following operational requirements: Definition

OR-1 The class must contain a function named toWholeMiles() that is passed an int-valued distance in ft and returns the int-valued number of whole miles. For example, if this function is passed the value 6000 it should return 1 (since 6000 feet is more than 1 mile but not 2 miles).

OR-2 The class must contain a function named toRemainingFeet() that is passed an int-valued distance (in ft) and returns the int-valued number of feet remaining after subtracting off the number of whole miles. For example, if this function is passed the value 6000 it should return 720 (since 6000 feet is 1 mi, 720 ft).

OR-3 The class must contain a function named toKilometers() that is passed a double-valued distance in mi and returns the equivalent double-valued distance in km.

Copyright 2013