162k views
3 votes
Tom and Jerry opened a new lawn service. They provide three types of services: mowing, fertilizing, and planting trees. The cost of mowing is $35.00 per 5,000 square yards, fertilizing is $30.00 per application, and planting a tree is $50.00. Write an algorithm that prompts the user to enter the area of the lawn, the number of fertilizing applications, and the number of trees to be planted. The algorithm then determines the billing amount. (Assume that the user orders all three services.)

User Konsolebox
by
5.3k points

1 Answer

6 votes

Answer:

INPUT area of the lawn

INPUT number of fertilizing applications

INPUT number of trees to be planted

SET bill = (35 x area of the lawn/5000) + (30 x number of fertilizing applications) + (50 x number of trees to be planted)

PRINT bill

Step-by-step explanation:

Ask the user to enter the area of the lawn, the number of fertilizing applications, and the number of trees to be planted

Calculate the bill

Print the bill

User Mocha
by
4.9k points