Question: 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 4800 the cost is 35 dollars. If the square footage is greater than 4800 but less than or equal to 6,000 square feet, the cost is 45 dollars. If the square footage is greater than 6,000 but less than or equal to 7,500 square feet, the cost is 55 dollars. If the square footage is greater than 7,500 the cost is 65 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 80 feet by 60 feet, the area is 4800 and the price is 35.
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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!