Answer
The development of male behaviors involving mating rituals is controlled by the fruitless (fru) gene and the development of male anatomy is controlled by the doublesex (dsx)gene. These two genes form an expression cascade that causes different dsx and fru gene products between the genders.
Work Step by Step
--