Computer Programming/Functions/Java

// This program asks the user for a Fahrenheit temperature, // converts the given temperature to Celsius,// and displays the results.//// References:// https://www.mathsisfun.com/temperature-conversion.html// https://en.wikibooks.org/wiki/Java_Programmingimportjava.util.*;classsubroutines{privatestaticScannerinput=newScanner(System.in);publicstaticvoidmain(String[]args){doublef;doublec;f=getF();c=calculateC(f);displayResult(f,c);}privatestaticdoublegetF(){doublef;System.out.println("Enter Fahrenheit temperature:");f=input.nextDouble();returnf;}privatestaticdoublecalculateC(doublef){doublec;c=(f-32)*5/9;returnc;}privatestaticvoiddisplayResult(doublef,doublec){System.out.println(f+"° Fahrenheit is "+c+"° Celsius");}}