In sweet pea gene C or P alone produces white flower, where as both C and P are needed to produce purple coloured flower. In a particular cross between two white flowered plants the offsprings were one half purple and one-half white. The possible genotypes of the parents is: