Skip to content

The code models a simplified sheep breeding scenario, adhering to specific mating rules between Type A and Type B males, with provisions for cases where one type of male is absent.

Notifications You must be signed in to change notification settings

hendrixejegi/sheepbreedersim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

sheepbreedersim

The code models a simplified sheep breeding scenario, adhering to specific mating rules between Type A and Type B males, with provisions for cases where one type of male is absent.

The reproduction process follows specific rules:

  1. Type A males mate first as they produce two baby sheep when mating,
  2. Type B males mate after Type A males because they produce one baby sheep.
  3. However, in the absence of Type A males, Type B males take precedence in mating

The program prompts the user to input the number of Type A males, Type B males, and female sheep. It then calculates the total population, tracks pregnant females, and records the number of newborns based on the mating rules. The output includes information on the number of fathers, pregnant females, newborns, and the total sheep population after the reproduction process.

About

The code models a simplified sheep breeding scenario, adhering to specific mating rules between Type A and Type B males, with provisions for cases where one type of male is absent.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published