In: Computer Science
Create a C# console application (do not create a .NET CORE project) and name the project TuitionIncrease. The college charges a full-time student $12,000 in tuition per semester. It has been announced that there will be a tuition increase by 5% each year for the next 7 years. Your application should display the projected semester tuition amount for the next 7 years in the console window in the following format:
The tuition after year 1 will be $12,600.
Note: The number is in the output and the format of the tuition amount is currency with 0 decimal places
If you have any doubts, please give me comment...
using System;
public class TutionIncrease{
public static void Main(){
int tutionPerSem = 12000;
double fee = tutionPerSem;
for(int i=1; i<=7; i++){
fee = fee+fee*(5/100.0);
Console.WriteLine("The tution after year {0} will be {1}.",i, fee.ToString("$#,###"));
}
}
}