Answered step by step
Verified Expert Solution
Link Copied!

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions

Question

Define promotion.

Answered: 1 week ago

Question

Write a note on transfer policy.

Answered: 1 week ago

Question

Discuss about training and development in India?

Answered: 1 week ago

Question

Explain the various techniques of training and development.

Answered: 1 week ago