Specifications
Assume that you are a farmer who grows flowers. You have 3 different colors of seeds: red, blue,
and green. Each seed will grow into a different flower based on conditions including the soil
temperate and soil moisture (wet or dry). If the given conditions are not met, the seed will grow
into a mushroom.
Here are the types of flowers that will grow:
1. A red seed will grow into a flower when planted in soil temperatures above 75°,
otherwise it will grow into a mushroom. Assuming the soil temperature meets the
conditions for growing a flower, planting the red seed in wet soil will produce a
sunflower and planting the red seed in dry soil will produce a dandelion.
2. A blue seed will grow into a flower when planted in soil temperatures ranging from 60°
to 70°, otherwise it will grow into a mushroom. Assuming the soil temperature meets the
conditions for growing a flower, planting the blue seed in wet soil will produce a daisy
and planting the blue seed in dry soil will produce a rose.
3. A green seed will grow into a flower when planted in soil temperature above 65°,
otherwise it will grow into a mushroom. Assuming the soil temperature meets the
conditions for growing a flower, planting the green seed in wet soil will produce a
carnation and planting the green seed in dry soil will produce a lily.
Here is the beginning section of the Python program that shows the input commands and what
will type of flower will grow when you plant a red seed. Complete the program for blue and
green seeds. After you have typed the whole program, make sure to test all of the options.
seed_color=input("What color is the seed (red, blue, or green)?")
soil_moisture=input("Is the soil wet or dry?")
temperature=int(input("What is the soil temperature?"))
if seed_color == "red":
if temperature > 75:
if soil_moisture == "wet":
print("Sunflower")
elif soil_moisture == "dry":
print("Dandelion")
else:
print("Mushroom")