hey guys i have this assignment where i have to calculate final population ill just copy and paste it here:

A bacteriologist determines that the approximate final population of bacteria present in a culture after time (in days) is given by the following formula:

FinalPopulation = InitialPopulation * e(GrowthRate * Time)

where InitialPopulation is the number present at the beginning of the observation period (Note: InitialPopulation does not change its value). Let the user input the InitialPopulation, which is the number of bacteria present at the beginning of the trial and the GrowthRate (as a percentage). Then compute the number of bacteria in the culture after each day for the first 10 days (Time will have values 1 through 10). Do this in a loop so the user can see the results in a table (properly format your table with column headers and a title). The output table should have headings for Day and Number of Bacteria Present (on that day).

e=2.71828

and here is what i have so far. ( ive been working on this for almost 2 days)

i tried following this thread "C# Loops sending me for a loop... Could use some help " and this is what i have.

//declare variables

double FinalPopulation, InitialPopulation;

double e = 2.71828;

decimal growthRate;

while (i <= Interval)

{ Console.Write("Enter the Initial Population:");

InitialPopulation = double.Parse(Console.ReadLine());

Console.Write("Enter the Growth Rate: ");

growthRate = decimal.Parse(Console.ReadLine());

// FinalPopulation = Math.Log(InitialPopulation * e) * (Math.Pow(growthRate * DateTime)); }

//keep the console window open

Console.ReadLine();

A bacteriologist determines that the approximate final population of bacteria present in a culture after time (in days) is given by the following formula:

FinalPopulation = InitialPopulation * e(GrowthRate * Time)

where InitialPopulation is the number present at the beginning of the observation period (Note: InitialPopulation does not change its value). Let the user input the InitialPopulation, which is the number of bacteria present at the beginning of the trial and the GrowthRate (as a percentage). Then compute the number of bacteria in the culture after each day for the first 10 days (Time will have values 1 through 10). Do this in a loop so the user can see the results in a table (properly format your table with column headers and a title). The output table should have headings for Day and Number of Bacteria Present (on that day).

e=2.71828

and here is what i have so far. ( ive been working on this for almost 2 days)

i tried following this thread "C# Loops sending me for a loop... Could use some help " and this is what i have.

//declare variables

double FinalPopulation, InitialPopulation;

double e = 2.71828;

decimal growthRate;

while (i <= Interval)

{ Console.Write("Enter the Initial Population:");

InitialPopulation = double.Parse(Console.ReadLine());

Console.Write("Enter the Growth Rate: ");

growthRate = decimal.Parse(Console.ReadLine());

// FinalPopulation = Math.Log(InitialPopulation * e) * (Math.Pow(growthRate * DateTime)); }

//keep the console window open

Console.ReadLine();