For every plant, there is a growth cycle. The number of days that it takes starting from being a seed and ending in being a fruit is what is called the growth cycle. Write a function that takes a...


For every plant, there is a growth cycle. The number of days that it takes starting from being a seed and ending<br>in being a fruit is what is called the growth cycle. Write a function that takes a plant's name as an argument and<br>returns its growth cycle (in days).<br>In your program:<br>1. Input from the user the name of a plant<br>2. Check if the input is either
days to reach maturity." If not, your program should print "Your plant is available, please try "strawberry", "cucumber" or "potato" Input potato Output ### The life cycle of a potato ### A seed takes 120 days to reach maturity. "/>
Extracted text: For every plant, there is a growth cycle. The number of days that it takes starting from being a seed and ending in being a fruit is what is called the growth cycle. Write a function that takes a plant's name as an argument and returns its growth cycle (in days). In your program: 1. Input from the user the name of a plant 2. Check if the input is either "strawberry", "cucumber" or "potato", if Yes: 2.1 Call calculate_growth_cycle 2.2. In function calculate_growth_cycle, check over the plant's name: 2.2.1 If strawberry, print "### The life cycle of a strawberry ###" and return 110 2.2.2 If cucumber, print "### The life cycle of a cucumber ###" and return 76 2.2.3 If potato, print "### The life cycle a potato ###" and return 120 2.3 With the growth cycle number returned, your program should print "A seed takes days to reach maturity." If not, your program should print "Your plant is available, please try "strawberry", "cucumber" or "potato" Input potato Output ### The life cycle of a potato ### A seed takes 120 days to reach maturity.

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here