import java.awt.*; //uses abstract library
import java.applet.Applet; //used applets
public class javaTemperature extends Applet //file name, class, and how
{ //opens class
public void paint (Graphics g) //uses graphics
{ //open void
float fahrenheit; //declarations
float celsius;
fahrenheit = 75;
celsius = (fahrenheit - 32.0f) * 5.0f / 9.0f;
g.drawString("The temperature in Fahrenheit is " +fahrenheit, 5, 10);
g.drawString("The temperature in Celsius is " +celsius, 5, 30);
}
}

Copyrighted Material by vmyvnesd