Home / Expert Answers / Computer Science / cant-find-error-in-this-code-nbsp-10-print-34-monarch-butterfly-population-estimation-app-34-11-dat-pa955

(Solved): cant find error in this code  10 print ("Monarch Butterfly Population Estimation App." ) 11 dat ...



cant find error in this code 

10 print (Monarch Butterfly Population Estimation App. )
11 date = input (Enter date:)
12 print (Report made on Tuesday,
Here is a sample program run:
Monarch Butterfly Population Estimation App.
Enter date: Tuesday, December 17th
Enter width in
Io estimate a monarch butterfly population, here are the steps you will take:
1. You will need the two inputs from the user.
10 print ("Monarch Butterfly Population Estimation App." ) 11 date = input ("Enter date:") 12 print ("Report made on Tuesday, December 17th.") 13 width = input ("Enter width in \( \mathrm{km:} \) ") \( 14 \mathrm{X}= \) round \( (.36850000000000005,2) \) 15 print ("Total area occupied:") 16 length = input ("Enter length in km:") \( 17 \mathrm{y}=\operatorname{round}(0.067 ; 2) \) 18 print \( (y) \) 19 Here is a sample program run: Monarch Butterfly Population Estimation App. Enter date: Tuesday, December 17th Enter width in km: \( 0.053 \) Enter length in km: \( 0.067 \) Report made on Tuesday, December 17 th. Total area occupied: \( 0.36 \) hectares Est Amated population: \( 7.49 \mathrm{e}+06 \) monarch butterflies The first line is a blank line, followed by a print statement describing the app, followed by another blank line. Next comes three user prompted inputs. The bold text is the prompt and the non-bold text is sample input provided by the user (it could be any date, any width, any length): Enter date: Tuesday, December 17 th Enter width in \( \mathrm{km}: 0.053 \) Enter length in km: \( 0.067 \) Io estimate a monarch butterfly population, here are the steps you will take: 1. You will need the two inputs from the user. The first will be width ir \( \mathrm{km} \) and the second is the length in \( \mathrm{km} \). These are measurements the researchers make to estimate the amount of area the monarch butterflies are occupying. 2. Calculate the area assuming a rectangle area. Your units will be square km. 3. Convert the area from square \( \mathrm{km} \) into a hectare. A hectare is a unit of area. Use Google to find the conversion rate. This is one of the - outputs. 4. Estimate how many monarch butterflies by assuming there are approximately \( 21.1 \) million monarch butterflies per hectare (citation). This is another output.


We have an Answer from Expert

View Expert Answer

Expert Answer


Code: def population(y): #step 1 l = y%100 #step 2 s = l - 10 #st
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe