title: mixture of recursive and loop
body: <p>So I have a recursion problem.</p>
  
  <p>Write a program that will predict the size of a population of organisms. The program should ask for the starting number of organisms, their average daily population increase (as a percentage), and the number of days they will multiply.
  For example, a population might begin with two organisms, have an average daily increase of 50 percent, and will be allowed to multiply for seven days. The program should use a loop to display the size of the population for each day.
  Input Validation:</p>
  
  <ul>
  <li>Do not accept a number less than 2 for the starting size of the population.</li>
  <li>Do not accept a negative number for average daily population increase.</li>
  <li>Do not accept a number less than 1 for the number of days they will multiply.</li>
  <li>Make sure your program uses a recursive method instead of a loop to calculate the number of organisms.</li>
  <li>Please document pre and post conditions at the beginning of any method you are completing. If none exists then state none for each.</li>
  </ul>
  
  <p>We have to write a <code>displayPopulation</code> method which will display the population size of each day. Then, we have to write the recursive method to calculate the size and then we have the main for input validation.</p>
  
  <p>Now, I have the main and the recursive method. What I can't figure out is how to make a loop display the size each day? 
  Following is my recursive method:</p>
  
  <pre><code>private static double showPopulation(int dayNum, int days, double organisms, double dailyIncrease){
  
    if(dayNum==days)
        return organisms;
     else 
  
          return showPopulation(dayNum+1, days, organisms + organisms*(dailyIncrease/100), dailyIncrease);
  }
  </code></pre>
  
  <p>I know this will give me the size of all days combined. I don't know how to store each value and make it print in a loop in a different method.I am really lost. I need some help I would appreciate it. </p>