A bank account earns interest once per year. Compute the interest earned in the first and second years.
Extracted text: A bank account earns interest once per year. Compute the interest earned in the first and second years. Investment.java 1 public class Investment 2 { 3 4 5 public static void main(String[] args) { double balance = 351.75; double percent = 5.5; 7 8 double interest = balance percent; System.out.printf("Year 1 interest: %.2f%n", interest); 9 10 11 12 interest = balance percent; 13 14 15 } System.out.printf("Year 2 interest: %.2f%n", interest); }
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here