//Toby Hsieh //Chapter 4, Exercise 6 //Fahrenheit to Celsius import java.awt.*; import java.applet.Applet; public class ch4ex6 extends Applet { public void paint(Graphics g) { float f=75f; float c=(f-32f)*(5f/9f); g.drawString("Fahrenheit: "+f+" degrees", 50, 100); g.drawString("Celsius: "+c+" degrees", 50, 115); } }