The values in the boxes can be changed before starting animation

Output

Variable Name      Value in Memory
tuition
year
answer
  1  public class FutureTuition {
  2    public static void main(String[] args) { 
  3      double tuition = ;   // Year 0
  4      int year = 0;
  5      while (tuition < ) {
  6        tuition = tuition * ;
  7        year++;
  8      }
  9    
 10      System.out.println("Tuition will be doubled in "
 11        + year + " years"); 
 12      System.out.printf("Tuition will be $%.2f in %1d years",  
 13        tuition, year);
 14    }
 15  }