Directions

This exercise requires designing a program which solves the problem described in the problem statement below. Provide comments in the pseudo-code and Java program as necessary.

Your solution must include these components:

1.Flowchart
2.Pseudo-code
3.Program coded
4.Program output

Problem Statement

At one college, the tuition for a full-time student is $6000 per year. It has been announced that the tuition will increase by two percent each year for the next five years. Design a program with a loop that displays the projected tuition amount for the next five years.

Your program should include the following:

  • Module main. Assigns the tuition for one year to a variable. Calls calcTuition, passing the starting tuition.
  • Module calcTuition. Accepts the starting tuition and calculates/displays tuition for each of five years.

Expected Output

Your results should be similar to the following:

Your results should be similar to the following:
The tuition in year 1 is 6000.0
The tuition in year 2 is 6120.0
The tuition in year 3 is 6242.4
The tuition in year 4 is 6367.248
The tuition in year 5 is 6494.59296
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.