Currency Conversion - Java Quiz Question


Write code to convert a given Indian Rupees to US Dollar Amount. Assume that the conversion rate is 1 USD = 51.04 INR.



class CurrencyConversion
{
    public static void main(String s[])
    {
        System.out.println(" 5000 INR is same as " + convertToUSD(5000) + " USD");

    }


    public static double convertToUSD(double rupees)
    {
        double result = 0;
        return result;
    }

}