ikasse78 ikasse78
  • 09-09-2021
  • Computers and Technology
contestada

Convert Fahrenheit to Celsius using this formula: F = (9/5)*C+32


getFahrenheit(30) → 86.0
getFahrenheit(0) → 32.0
getFahrenheit(20) → 68.0

Respuesta :

rajavamsi566
rajavamsi566 rajavamsi566
  • 09-09-2021

Answer:

The program is written in Java.

public class NewClass {

   

    public static double getFahrenheit(double celcius)

    {

        double fahrenheit;

        fahrenheit=32+(celcius*1.8);

        return fahrenheit;

    }

     

    public static void main(String [] args) {

        System.out.println(getFahrenheit(30));

        System.out.println(getFahrenheit(0));

        System.out.println(getFahrenheit(20));

       

    }

}

Ver imagen rajavamsi566
Answer Link

Otras preguntas

Which term describes a committee that has been created or selected to examine a specific issue and report findings, recommendations, or legislative proposals fo
is the ability to roll your tounge genetic?
Write 0.088 as a fraction in simplest form.
Graph each inequality on a number line\. f>1
A scientist observes fossil evidence that leads her to believe that certain organisms have a common ancestor. Which observation most likely led to this conclusi
How long after Jerusalem’s walls were breached did Jersualem fall to the Babylonians
Harriet is cultivating a strain of bacteria in a petri dish. Currently, she has 103 bacteria in the dish. The bacteria divide every two hours such that the numb
How many decimeters are there if there are 3 centimeters.
in angiosperms, pollen grains are produced in
How did the woman reword the Declaration of Independence to include themselves? Explain.
good job