import java.util.Scanner;
class CD
{
public static void main(String[] args)
{
int count = 0;
double IIA = 0;
double AIR = 0;
double DEV = 0;
Scanner putt = new Scanner(System.in);
System.out.println("You have been transfered to the certificates of deposit calulator");
System.out.println("Please enter your values");
System.out.println("The following values have been selected");
System.out.println("------------------------------------");
String IIA = putt.nextLine();
System.out.println("Initial Investement: $"+IIA+".00");
IIA = Integer.parseInt(IIA);
String AIR = putt.nextLine();
System.out.println("Interest Rate Anually "+AIR+"%");
AIR = Integer.parseInt(aIR);
AIR = AIR/100;
String DEV = putt.nextLine();
System.out.println("Ending value: $"+DEV+".00");
DEV = Integer.parseInt(DEV);
formula
{
IIA = IIA + (IIA*annualIR);
count++;
}while(IIA<=DEV);
System.out.println("Amount of years: "+count+" years");
System.out.println("------------------------------------");
System.out.print("The calculator is pleased to serve you!");
}
}