208k views
4 votes
Python suppose that the tuition for a university is $10,000 this year and increases 5% every year. write a program that computes the tuition in ten years and the total cost of four years’ worth of tuition starting ten years from now.

2 Answers

5 votes

Answer: heres the code

Step-by-step explanation:

import java.util.Scanner;

public class whilelooptwo{

public static void main(String[] args)

{

int v = 10000;

int year = 1;

while(year <= 9){

year += 1;

int t = v *= 1.05;

System.out.println("Tutition for year " + year + " is " + t);

}

}

}

User Ccoakley
by
8.2k points
6 votes
In the age of uncertainty, student funding, economic crashes and downslides, it is virtually impossible to guarantee that only a 5% increase cost in education will ensue annually. If the predicted rate increases at only the stated percentage, I would still be unable to say that my education goals at university would be a realistic endeavor. I say take the time and money and apply towards a vocational college degree and obtain a career quicker and realistically able to obtain. Thank you.
User Alisa
by
8.9k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.