[Solved]General Instructions Create Class Called Lawnservice Takes Length Width Yard Along Current Q37207862
MyProgramming Lab Python:

General Instructions Create a class called LawnService that takes in the length and width of a yard, along with the current state of the yard. The currect state can be: poor acceptable or great. Within this class include a constructor that will assign these values to attributes. Additionally create three methods that vil be named and do the following: This method will focus on the lawn status the lawn company will need to visit the household twice a month for 6 months. If the status is acceptable, the lawn company will need to visit once a month for 6 months. Finally if the lawn is great, the lawn company will visit every other month for 6 months DetermineTotal: This method will use the number of applications as determined by the method DetermineApplication to calculate the total cost to the customer. The calculation will first determine the area using the lenght and width. For each square foot of lawn the lawn company charges $0.05. The total cost will include the cost for each application by how many applications are necessary as determined by DetermineApplication. ReturnTotal: This method returns the total cost to the customer Analyzing the Requiements ere any data that needs class in order for it to work? Is there any data processed in this class? What data needs to leave this class? Once you have the data requirements figured out, detemine the methods for this class along with their algorithms Finally determine what data needs to leave the class and what access methods you will need to write in order for that to happen Writing the Code After figuring out what your class needs to do, open up your Python compiler and create your constructor to declare and initialize your attributes. Then code your methods followed by the access methods. To test this in the compiler, create main that will create your first object. Send in to the 40 for the width, 30 for the length and for the status poor”. Call your method to determine the application, followed by the method to determine the total. Next call the method to return the total and print that to the screen. If your total is 720 your code is working. If your total is not this go back and check your decision structure in determine application. Next check your determine total method to make sure your math is correct. If you are unable to find your error by analzying each of these methods, place print statements within your methods to show you the values of your variables as your class executes. As soon as you get your code running and working, copy your code for the class only to Notepad++ to presearve the spacing followed by a copy and paste into MPL. Click on the submit button to run your code in MPL. Show transcribed image text General Instructions Create a class called LawnService that takes in the length and width of a yard, along with the current state of the yard. The currect state can be: poor acceptable or great. Within this class include a constructor that will assign these values to attributes. Additionally create three methods that vil be named and do the following: This method will focus on the lawn status the lawn company will need to visit the household twice a month for 6 months. If the status is acceptable, the lawn company will need to visit once a month for 6 months. Finally if the lawn is great, the lawn company will visit every other month for 6 months DetermineTotal: This method will use the number of applications as determined by the method DetermineApplication to calculate the total cost to the customer. The calculation will first determine the area using the lenght and width. For each square foot of lawn the lawn company charges $0.05. The total cost will include the cost for each application by how many applications are necessary as determined by DetermineApplication. ReturnTotal: This method returns the total cost to the customer Analyzing the Requiements ere any data that needs class in order for it to work? Is there any data processed in this class? What data needs to leave this class? Once you have the data requirements figured out, detemine the methods for this class along with their algorithms Finally determine what data needs to leave the class and what access methods you will need to write in order for that to happen Writing the Code After figuring out what your class needs to do, open up your Python compiler and create your constructor to declare and initialize your attributes. Then code your methods followed by the access methods. To test this in the compiler, create main that will create your first object. Send in to the 40 for the width, 30 for the length and for the status poor”. Call your method to determine the application, followed by the method to determine the total. Next call the method to return the total and print that to the screen. If your total is 720 your code is working. If your total is not this go back and check your decision structure in determine application. Next check your determine total method to make sure your math is correct. If you are unable to find your error by analzying each of these methods, place print statements within your methods to show you the values of your variables as your class executes. As soon as you get your code running and working, copy your code for the class only to Notepad++ to presearve the spacing followed by a copy and paste into MPL. Click on the submit button to run your code in MPL.
Expert Answer
Answer to General Instructions Create a class called LawnService that takes in the length and width of a yard, along with the curr… . . .
OR

