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

According to wilhelm wundt, the focus of psychology was on the scientific study of
Explain how the geography of Japan has protected its people and helped the Japanese develop distinct ways of life. I need to know this please help.
If you had to lift a 100lb box 8 feet in the air, how would you? Cannot use electricity, a motor, or other people.​
The answer to this problem!! Thanks
Given: △ABC, ADEF rhombus D∈AB, E∈BC, F∈AC AB=14, BC=12, AC=10 Find: BE and EC
Find the work w1 done on the block by the force of magnitude f1 = 95.0 n as the block moves from xi = -5.00 cm to xf = 4.00 cm .
what is m/g? enter answer in the box​
Hey I need help !!!
According to speaker jim Wright is the main difference between the house and the senate
what do I do to solve this?