fee.java - public class fee public static void main(String args int AfterTenthYear = 0 int fee = 10000 int InTenYear = 0 int count = 0 for(int year =

fee.java - public class fee public static void main(String...

This preview shows page 1 out of 1 page.

public class fee {public static void main(String[] args) {int AfterTenthYear = 0;int fee = 10000;int InTenYear = 0;int count = 0;for (int year = 1; year <= 10; year++) {// Increase fee by 5% every yearfee += (fee * 0.05);InTenYear = fee;count++;System.out.println("Tuition fee in " + count + " year: $" + InTenYear);}for (int year = 10; year <= 14; year++) {
Background image

You've reached the end of your free preview.

Want to read the whole page?

  • Spring '17
  • Ijlal

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture