Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a function called GetLawn that will figure out how much it will cost to have a lawn cut by a landscapping service. The service
Create a function called GetLawn that will figure out how much it will cost to have a lawn cut by a landscapping service. The service bases their fees on the size of the lot. If the square footage is less than or equal to the cost is dollars. If the square footage is greater than but less than or equal to square feet, the cost is dollars. If the square footage is greater than but less than or equal to square feet, the cost is dollars. If the square footage is greater than the cost is dollars. The function should take in to it the length and width of the lawn. The function needs to return the area of lawn that needs to be cut and the price. Make sure when you create your function that your parameters are in the right order length width Additionally your function needs to return floats and not a float and a string. Finally make sure your return values are in the right order area price
Given that someones lawn is feet by feet, the area is and the price is
Codio will run your function and send in various values in order to test your function. Prior to clicking on the Check It button, add code to your solution to call your function. Then click on the Try It button.
TRY IT
If your program is not running, click on the Code Visualizer link to run your code line by line. If that still doesnt help, copy the code to either IDLE or VS Code in order to better debug this program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started