Asked • 11/19/19

How to write this in Pseudocode?

You own the Boll Weevil Landscaping Company and want to create a program to estimate the cost of the services you provide. You provide the following services:

Service Cost per square yard
Mowing .02
Fertilizing .05
Insecticide .05
Fertilize and Insecticide .08
Tilling .10
Mulching .12

 The program will create the following output to the screen:

                           Boll Weevil Landscaping Company

                             Yard Maintenance Cost Estimate

Cost Estimate for customer # - 123 for 1412.00 square yards of yard.

--------------------------------------------------------------------------------------------------------

Cost Estimate for Mowing at .02 per square yard:                         $ 0.00

Cost Estimate for Fertilizer at .05 per square yard:                        $ 0.00

Cost Estimate for Insecticide at .05 per square yard:                       $ 0.00

Cost Estimate for Fertilizer and Insecticide at .08 per square yard:            $ 112.96

Cost Estimate for Tilling at .10 per square yard:                            $ 0.00

Cost Estimate for Mulching at .12 per square yard:                        $ 169.44

 

Total cost of the job is:                                                 $ 282.40

 

The shapes used are: Square, Triangle, Circle, Partial Circle and Ellipse. Based on the dimensions entered, calculate the square yards for each shape selected in the application. Keep a running total of the square yards. The flow of the application is to first prompt the users for the customer number, then prompt the user for which service or services they want performed. Then prompt the user to enter the shape of the yard and calculate the square yards for that shape. The customer can request more than one service and have more than one shape for the total job. You will need to keep a running total for each service based on the total area of the yard (include all shapes). Output the results to the screen. You must find the formulas to use in your flowchart or pseudo-code for the shapes and use the accumulator variable to save the running totals.


1 Expert Answer

By:

Kenneth L. answered • 01/13/20

Tutor
5.0 (701)

Experienced Computer Science Instructor

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.