Java Applet Program for Celsius to Fahrenheit Conversion

Write a Java Applet Program for Celsius to Fahrenheit conversion.

Source Code
import java.awt.*;		// import awt package
import java.applet.*;	// import applet package

public class CelsiFahrApplet extends Applet 
    String msg;
    float celsius,fahrenheit;
    public void init() // override init() method
        msg = getParameter("Temp");  // receiving parameter value
        celsius = Float.parseFloat(msg); // Convert string to int
       	fahrenheit = (1.8f * celsius)+32;	//	Formula F = ((9/5)*C)+32
    public void paint(Graphics g)
        g.drawString("Temperature in Fahrenheit = "+fahrenheit,10,50);	// display message on applet
/* 	<applet code=CelsiFahrApplet.class height=100 width=300>
 	<param name="Temp" value="15">

"Coding Hub - Learn to code" app now available on Google Play Store