Write an application for a lawn-mowing service. The lawn-mowing season lasts for 20 weeks. The weekly fee for mowing a lot less than 400 square feet is $25. The fee for a lot that is 400 square feet or more, but fewer than 600 square feet, is $35 per week. The fee for a lot that is 600 square feet or over is $50 per week. Prompt the user for the length and width of a lawn, and then print the weekly mowing fee, as well as the 20-week seasonal fee. Save the class as Lawn.java. To the Lawn class, add a prompt that asks the user whether the customer wants to pay Once, Twice, or 20 times per year. If the user enters 1 for once, the fee for the season is simply the seasonal total. If the user requests two payments, each payment is half the seasonal fee plus $5 service charge. If the user requests 20 separate payments, add a $3 service charge per week. Display the number of payments the customer must make, each payment amount, and total for the season. Save the class as Lawn2.java.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |