code: public static double convertFromRankine(TemperatureScale to, double temperature) {
  
          switch(to) {
  
              case FARENHEIT:
                  return convertRankineToFarenheit(temperature);
              case CELSIUS:
                  return convertRankineToCelsius(temperature);
              case KELVIN:
                  return convertRankineToKelvin(temperature);
              case RANKINE:
                  return temperature;
              default:
                  throw(new RuntimeException("Invalid termpature conversion"));
          }
      }
docs: Convert a temperature value from the Rankine temperature scale to another.
  
  @param to TemperatureScale
  @param temperature value in degrees Rankine
  @return converted temperature value in the requested to scale