@@ -0,0 +1,750 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=1862%0A%0Apublic class BritishCoins %7B%0A%09public static int%5B%5D coins(int pence) %7B%0A%09%09final int PENNIES_IN_SHILLING = 12;%0A%09%09final int SHILLINGS_IN_POUND = 20;%0A%09%09final int PENNIES_IN_POUND = PENNIES_IN_SHILLING * SHILLINGS_IN_POUND;%0A%09%09%0A%09%09int pennyCount = 0;%0A%09%09int shillingCount = 0;%0A%09%09int poundCount = 0;%0A%09%09%0A%09%09// Get pound count%0A%09%09while (pence %3E= PENNIES_IN_POUND) %7B%0A%09%09%09pence -= PENNIES_IN_POUND;%0A%09%09%09poundCount++;%0A%09%09%7D%0A%09%09%0A%09%09// Get shilling count%0A%09%09while (pence %3E= PENNIES_IN_SHILLING) %7B%0A%09%09%09pence -= PENNIES_IN_SHILLING;%0A%09%09%09shillingCount++;%0A%09%09%7D%0A%09%09%0A%09%09// Get penny count (equal to whatever is left in 'pence')%0A%09%09pennyCount = pence;%0A%09%09%0A%09%09return new int%5B%5D %7B poundCount, shillingCount, pennyCount %7D; %0A%09%7D%0A%7D%0A

Create BritishCoins.java