A plant with purple flowers (PP) is crossed with a plant with white flowers (pp), resulting in offspring with all purple flowers.

The allele for purple color is

dominant, while the allele for white color is recessive.