Alright…I am here looking for some bread crumbs.
This is my code:
using System;
namespace Project4
{
class Program
{
static void Main()
{
int total = 1;
Console.WriteLine("Month \tAdult \tBaby \tTotal");
Console.WriteLine("1 \t1 \t0 \t0");
while (total < 5)
{
for (int m = 1; m < 5; m++)
{
Console.Write("{0}", m);
for (int a = 1; a < 5; a++)
{
Console.Write("\t{0}", a);
}
}
}
}
}
}
It is very incomplete….
I basically have iteration logic dumb moment. You have Month, Adult Bear, Baby Bear, and Total Bears
Month Adult Baby Total
1 1 0 1
2 1 1 2
3 2 1 3
4 3 2 5
5 5 3 8
ect
Every month the adult has a baby. The next month that baby becomes a adult. But also the current adults have 1 baby each…..if you noticed by the matrix.
So I am trying to iterate the births of bears and also the transfer of babies to adults month after month.
I get caught up on the transfer part of the iteration….I have been thinking about using objects but again….not sure how to transfer.
Any hints or direction be great =)
Keep track of the adults and babies separately.