Question: // global named constants static final double NINE_FIFTHS = 1.8; static final double CELSIUS_KELVIN_FACTOR = 273.16; static final double FIVE_NINTHS = 5.0/9.0; static final double
// global named constants static final double NINE_FIFTHS = 1.8; static final double CELSIUS_KELVIN_FACTOR = 273.16; static final double FIVE_NINTHS = 5.0/9.0; static final double FAHRENHEIT_RANKIN_FACTOR = 459.69;
* celsiusToRankin(double) -> double * * method is given a temperature amount in degrees Celsius * method produces the temperature converted to degrees Rankin * * ex: * celsiusToRankin(0.0) -> 491.69 * celsiusToRankin(100.0) -> 671.69 * celsiusToRankin(-40.0) -> 416.69 * * *** ADD METHOD CODE BELOW THE FOLLOWING LINE ***
* rankinToFahrenheit(double) -> double * * method is given a temperature amount in degrees Rankin * method produces the temperature converted to degrees Fahrenheit * * ex: * rankinToFahrenheit(491.69) -> 32.0 * rankinToFahrenheit(671.69) -> 212.0 * rankinToFahrenheit(419.69) -> -40.0 * * *** ADD METHOD CODE BELOW THE FOLLOWING LINE ***
* fahrenheitToKelvin(double) -> double * * method is given a temperature amount in degrees Fahrenheit * method produces the temperature converted to degrees Kelvin * * ex: * fahrenheitToKelvin(32.0) -> 273.16 * fahrenheitToKelvin(212.0) -> 373.16 * fahrenheitToKelvin(-40.0) -> 233.16 * * *** ADD METHOD CODE BELOW THE FOLLOWING LINE ***
* kelvinToFahrenheit(double) -> double * * method is given a temperature amount in degrees Kelvin * method produces the temperature converted to degrees Fahrenheit * * ex: * kelvinToFahrenheit(273.16) -> 32.0 * kelvinToFahrenheit(373.16) -> 212.0 * kelvinToFahrenheit(233.16) -> -40.0 * * *** ADD METHOD CODE BELOW THE FOLLOWING LINE ***
rankinToCelsius(double) -> double * * method is given a temperature amount in degrees Rankin * method produces the temperature converted to degrees Celsius * * ex: * rankinToCelsius(491.69) -> 0.0 * rankinToCelsius(671.69) -> 100.0 * rankinToCelsius(416.69) -> -40.0 * * *** ADD METHOD CODE BELOW THE FOLLOWING LINE ***
kelvinToRankin(double) -> double * * method is given a temperature amount in degrees Kelvin * method produces the temperature converted to degrees Rankin * * ex: * kelvinToRankin(273.16) -> 491.69 * kelvinToRankin(373.16) -> 671.69 * kelvinToRankin(233.16) -> 416.69 * * *** ADD METHOD CODE BELOW THE FOLLOWING LINE ***
rankinToKelvin(double) -> double * * method is given a temperature amount in degrees Rankin * method produces the temperature converted to degrees Kelvin * * ex: * rankinToKelvin(491.69) -> 273.16 * rankinToKelvin(671.69) -> 373.16 * rankinToKelvin(416.69) -> 233.16 * * *** ADD METHOD CODE BELOW THE FOLLOWING LINE ***
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
