This preview shows page 1. Sign up to view the full content.
Unformatted text preview: double relative = cC.getBalance() / cC.getLimit() * CENT; String isStar = cC.getBalance() > avgBalance ? "*" : ""; String isArrow = relative >= ABSOLUTE ? "\t<" : ""; out.printf("%s%s\t%d\t%.2f%s%n", cC.getNumber() , isStar , (int) cC.getLimit(), cC.getBalance() , isArrow ); } out.printf("%nNumber of cards = %d%n", cardCount); out.printf("Average balance = %.2f%n", avgBalance); //Line required to get rid of Eclipse bug. But crashes eCheck //System.exit(0); } }...
View Full Document
This note was uploaded on 09/16/2011 for the course CSE CSE 1020 taught by Professor Burton,ma during the Fall '10 term at York University.
- Fall '10