Search This Blog

Wednesday, December 29, 2010

FUNCTIONS BASED PROGRAM - convert celcius into fahrenheit

class display
{
    public static void main(String args[])
    {
        temperature ob= new temperature();
        double temp=ob.convert(25.0);
        System.out.println("The temperature in fahrenheit is = "+temp);
    }
}
class temperature
{
    double convert(double celcius)
    {
        double far=1.8*celcius+32.0;
        return far;
    }
}

1 comment:

  1. As long as you're not having to skip days too often this basically just how some of these many people have been feeling in the method. Keep in mind that by this ninety days fitness program requiring an hour to an hour and a half seven days a week.

    my web page; find out this here

    ReplyDelete