Question: Programming Project 2 Lawn Service Estimation Application -- Revisited For your first programming project, you developed an application for a lawn service provider to use

 Programming Project 2 Lawn Service Estimation Application -- Revisited For your
first programming project, you developed an application for a lawn service provider
to use to estimate the materials and labor costs needed to fertilize

Programming Project 2 Lawn Service Estimation Application -- Revisited For your first programming project, you developed an application for a lawn service provider to use to estimate the materials and labor costs needed to fertilize a lawn. The lawn service provider would like you to modify your application to allow the user to enter multiple rectangular areas of a yard to be fertilized. Your application will need to prompt the user to enter the dimensions of a rectangular area of a yard, compute the area rectangular region, display the region's dimensions and area, and add the area to a running total of yard area. After each area is entered you will prompt the user to ask if they want to enter another area. If they enter yes, you will enter the dimensions of another rectangular region of the yard. If they answer no, you will compute the cost of fertilizing the combined areas using a single application of fertilizer and a seasonal application with the 10% discount as you did in project 1. As before the cost for a single application of fertilizer to a 1/4-acre yard is $65 (1/4-acre contains 10,890 sq. ft). When the user is entering dimensions for each region, you must verify the values are all greater than zero. If the user enters an incorrect value for a dimension, you should display an appropriate error message prompt the user to try again. The following picture provides a conceptual view of the problem. Please note that there are depth and width associated with each yard area. Only the depth and width of yard area 1 is shown in the diagram. Yard Area 2 Tree Area - No fertilizer Yard Area 3 HII The following picture provides a conceptual view of the problem. Please note that there are depth and width associated with each yard area. Only the depth and width of yard area 1 is shown in the diagram. Yard Area 2 Tree Area - No fertilizer Yard Area 3 Area 1 Width Yard Area 1 HOUSE Yard Area 4 Yard Area 5 Area 1 Depth The following example illustrates the expected behavior of your program. First, prompt the user to input the dimensions of the yard. Enter the dimension of region 1 Enter the yard width: 60 Enter the yard depth: 70 Region 1 is 60 x 70 = 4,200 sq. ft. Do you want to enter another region (yeso)? yes arch E III Enter the dimension of region 2 Enter the yard width: 50 Enter the yard depth: 60 Region 2 is 50 x 60 = 3,000 sq. ft. Do you want to enter another region (yeso)? no The estimated cost of the lawn treatment for an area of 20,550 g. ft One application of fertilizer: $122.66 A full season of applications of fertilizer: $441.58 You save $49.06 by choosing a season of applications. If the user makes a mistake while entering either dimension, your program should behave as follows: Enter the dimension of region 1 Enter the yard width: -60 Error you enter a width of -60 which is invalid - try again Enter the yard width: 0 Error you enter a width of O which is invalid - try again Enter the yard width: 60 Enter the yard depth: 70 Region 1 is 60 x 70 = 4,200 sq. ft. oll 11 ENG 21 2/21

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!