Any frequency in Hertz, Kilohertz, Megahertz, or Gigahertz can be converted to any other of these types. The routine asks for what frequency will be converted (from type) to what it will be converted to (to type). The user is then asked to provide the value of the from type frequency and the to type frequency will be returned.