Question: Using your Assignment 1 file, use the setw, showpoint, setprecision and the left and right alignment manipulators to format your output . (Assignment 1 =

Using your Assignment 1 file, use the setw, showpoint, setprecision and the left and right alignment manipulators to format your output .

(Assignment 1 = 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 re 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 the user orders all three services.)(Ch1. #18)

We are using the textbook C++ Programming, 8th Edition, from Problem Analysis to Program Design. We were only ever asked to provide an algorithm for assignment 1, so I'm not sure how implement setw, showpoint, or setprecision.

This is my submission for assignment 1. /* 1: Get area in sq. yards 2: Get num. of trees needed 3: Get num. of fertilizer applications 4: Get cost to mow. CostOfMowing = (35.0 / 5000.0) * AreaOfLawn 5: Get cost of fertilizing area. CostOfFertilizing = 30.0 * NumOfApplications 6: Get cost of trees planted. CostOfTrees = 50.0 * NumOfTrees 7: Get bill total. BillAmount = CostOfMowing + CostOfFertilizing + CostOfPlanting */

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!