What are the tasks for a flower?

A flower has one job. That job is to make seeds to reproduce. Some flowers will give off a good scent to attract pollinators. Others will put off a bad smell to attract flies to pollenate.