End of Month Two

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.

Answer:

At the end of the second month, your female rabbit has just become mature. She could not give birth during the month, so there is still just one rabbit.

End of Month Two

Recall the rules:

  • A female rabbit matures after 2 months.
  • Each mature female rabbit produces 1 baby female rabbit per month.

The chart shows the situation at the end of the second month. Your single female rabbit has just become mature. Assume that this fact has not gone unnoticed by the male rabbits.

N12345 678910
Females11         

QUESTION 10:

How many female rabbits are there at the end of the third month?