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));
}
}