Answer:
Answered below
Step-by-step explanation:
//Program in Java
int percentIncrease = 0.05;
Scanner scan = new Scanner(System.in);
System.out.print("Enter tuition: ");
int tuition = scan.nextInt();
double tenYearIncrease = (percentIncrease * 10) * tuition;
double tenYearsTotal = tuition + tenYearIncrease;
//Tuition in ten years
System.out.print(tenYearsTotal);
//Total four years after
double newTuition = tenYearsTotal;
double fourYearsIncrease = (percentIncrease * 4) * newTuition;
double fourYearsTotal = newTuition + fourYearsIncrease;
System.out.print(fourYearsTotal);