Squashes, melons, pumpkins, cucumbers, and gourds all belong to the squash family, Cucurbitaceae. There is a common pattern of the flowers that children enjoy finding, and that often escapes adults. I’ve pointed it out to many long-time gardeners, who hadn’t noticed it before.
Most members of this family are monoecious, which means each plant has flowers with only stamens along with other flowers which are only pistillate. These are commonly called male and female flowers. They are easy to tell apart if you look beneath the corolla. The ovary is inferior (located beneath the other flower parts) or, to put it another way, the other flower parts are epigenous (they sit on top the ovary).
If you want to find the pistillate (aka female) flowers, just look for a tiny ovary – a baby squash, cucumber, etc. – on the stem under the corolla. You can find the little ovaries well before the flowers open, so it is easy to see which flowers will produce the desired fruit. The mature ovary of a flowering plant is a fruit, so to a botanist, squashes, cucumbers, and melons are all fruits.
The staminate flowers have a plain stem beneath their corolla. Inside the filaments and anthers of their stamens are joined together into a knob-like structure that resembles a pistil. Inside the pistillate flower’s corolla, you can see the three-carpellate structure of the pistil. There are three stigma lobes that have two branches each. The fruit shows the three carpels as well. Look at a cross section of a squash or fruit of other family members to see this.
The next question that comes up is often “Why doesn’t my squash plant produce more squashes?” Sometimes the temperature is to blame. It affects the sex of squash flowers in ways that aren’t always obvious. When I lived in the mountains of Colorado, I found that although zucchini plants would grow, they seldom produced fruits. The plants would form female flowers, but seldom have staminate ones, so pollination didn’t happen. The cold soil temperatures were to blame. With other members of this family, cold temperatures cause only staminate flowers to form. You can read more about this on the website of the Ontario Ministry of Agriculture, http://www.omafra.gov.on.ca/english/crops/facts/00-031.htm
Conversely, temperatures above 95 degrees F can also cause flowers to drop instead of developing. There could be a number of factors operating in this case, including moisture stress.
Although squashes and begonias don’t commonly come to mind as relatives, if you look at the flowers of a begonia, you can see the same pattern – monoecious plants with inferior ovaries. The begonia family and the squash family both belong to the squash order, Cucurbitales.