> How can I do a currency conversion in Java with out multiplication or subtraction.?

How can I do a currency conversion in Java with out multiplication or subtraction.?

Posted at: 2014-12-18 
// example useing casting, division & modulus

public class CurrencyConversion {

public static void main(String[] args) {

double rate = 0.0782;

double pecos = 7210.25;

double US = pecos / (1/rate);

System.out.println("conversion: " + US);

int dollars = (int)US;

System.out.println( "dollars: " + dollars);

int cents = (int)(US/.01) % 100;

System.out.println( "cents: " + cents);

}

}

Dividing by .01 is the same as multiplying by 100.

So i'm in AP computer science where we learn to code Java but i'm having trouble with a currency converter assignment. We are given 7210.25 pesos and we must convert it to USD and the 1USD to peso is 0.0782. We are told we can use casting, division, and modulus. The problem is, is that I don't know how I could use any of these other operands to convert. Please help!