Python 3 The agricultural aviation company Agro Nomo offers a fertilizer application service. The cost of the service depends on the area of the plantation to be fertilized and is given by the following formula: Value = Area * Cost + Fertilizer The cost and value of the fertilizer vary according to the following table: Area (hectare) cost Fertilize [0, 10000] $ 6,00 $ 100,00 ]10000, 20000] $ 5,50 $150,00 ]20000, 30000] $ 5,00 $200,00 ]130000, ∞ [ $ 4,50 $250,00 Write a program that reads the area to be fertilized (in hectares) and determines the total amount to be charged by the company Agro Nomo, rounded to two decimal places. examples of input and output input 12000.0 output 66150.0 input 45000.0 output 202750.0
Python 3
The agricultural aviation company Agro Nomo offers a fertilizer application service. The cost of the service depends on the area of the plantation to be fertilized and is given by the following formula:
Value = Area * Cost + Fertilizer
The cost and value of the fertilizer vary according to the following table:
Area (hectare) cost Fertilize
[0, 10000] $ 6,00 $ 100,00
]10000, 20000] $ 5,50 $150,00
]20000, 30000] $ 5,00 $200,00
]130000, ∞ [ $ 4,50 $250,00
Write a program that reads the area to be fertilized (in hectares) and determines the total amount to be charged by the company Agro Nomo, rounded to two decimal places.
examples of input and output
input 12000.0 output 66150.0
input 45000.0 output 202750.0
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images