Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Arrays;
- public class test {
- //global variable
- static double denom[] = {100, 50, 25, 10, 5, 1, 0.25, 0.10, 0.05, 0.01};
- public static void main() {
- int bills[] = billsCalculator(387.41);
- System.out.println(Arrays.toString(bills));
- }
- public static int[] billsCalculator(double x) {
- //rounds off to nearest cent
- x = ((int)(x * 100) / 100.0);
- int bills[] = new int[10];
- //CONTINUE BELOW
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement