AkhmadGhafirin
3/30/2017 - 3:33 PM

Percobaan 4

package hello;

/**
 * Created by MR.Papstua on 3/30/2017.
 */
public class Percobaan4 {
    public static void main(String[] args) {
        float total = 14000;
        System.out.println("Original investmen : $" + total);
        // Increases by 40 percent the first year
        total = total + (total * .4F);
        System.out.println("After one year : $" + total);
        // Loses $1,500 the secon year
        total = total - 1500F;
        System.out.println("After two years +$" + total);
        // Increases by 12 percent the third year
        total = total + (total + .12F);
        System.out.println("After tree years : $" + total);
    }
}