@@ -0,0 +1,1197 @@
+package godofjava;%0A%0A/**%0A * Created by KimBangHyun on 2016. 12. 8..%0A */%0Apublic class InterestManager %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        InterestManager interestManager = new InterestManager() ;%0A%0A        long amount = 1000000 ;%0A%0A        for (int day=1;day%3C=365;day++) %7B%0A            //%0A            System.out.print(%22Day %22 + day + %22 %22 + (day %25 10));%0A            System.out.print(%22caculateAmount: %22 + interestManager.calculateAmount(day,amount));%0A%0A            if (day== 1 %7C%7C (day %25 10) == 0) %7B%0A                System.out.println(%22 %22 + %22caculateAmount: %22 + interestManager.calculateAmount(day, amount));%0A            %7D else System.out.println(%22 %22);%0A        %7D%0A%0A    %7D%0A%0A    public double getInterestRate(int day) %7B%0A        double interestRate = 0.0;%0A%0A        if (day %3E= 1 && day %3C= 90) interestRate = 0.5 / 100;%0A        else if (day %3C= 180) interestRate = 1.0 / 100;%0A        else if (day %3C= 364) interestRate = 2.0 / 100;%0A        else if (day %3E= 365) interestRate = 5.6 / 100;%0A%0A        return interestRate;%0A    %7D%0A%0A    public double calculateAmount(int day, long amount) %7B%0A        double caculuateAmount = getInterestRate(day) * amount + amount ;%0A%0A        return caculuateAmount;%0A    %7D%0A%7D

add comment