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
using System;
class Program
{
static void Main() {
double fee=12000;
double yearly_fee;
for(int i=1;i<=7;i++)
{
yearly_fee=fee+(fee*5/100);
fee=yearly_fee;
Console.WriteLine("{0} year tution charge is:
{1}",i,Math.Round(yearly_fee,0));
}
}
}
Get Answers For Free
Most questions answered within 1 hours.