Question

In: Computer Science

Tom and Jerry opened a new lawn service. They provide three types of services: mowing, fertilizing,...

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 5000 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.

Include:

Equations

Example Data

IPO Chart

Structure Chart

Pseudocode Algorithms

Solutions

Expert Solution

Equations

cost of mowing = $35 per 5000 square yards = $(35/5000) per square yards

cost of fertilizing = $30.00 per application

cost planting = $50.00 per tree

So, Total Bill in $ = [(area of the lawn in square yards)(35/5000)] + [(number of fertilizing applications)30] + [(number of trees to be planted)50]

Example Data (Sample Output of the algorithm)

IPO chart

Structure chart

Pseudocode of the Algorithm:

print "Please Enter area of the lawn in square yards"
Take input area_square_yards
print "Please Enter number of fertilizing applications"
Take input number_of_fert_appl
print "Please Enter number of trees to be planted"
Take input number_of_trees
Total_bill = (area_square_yards)*(35.0/5000.0) + (number_of_fert_appl*30.0) + (number_of_trees*50.0)
print "Total Bill Amount = $", Total_bill

Python code for the given problem:

print "Please Enter area of the lawn in square yards"
area_square_yards = float(raw_input())
print "Please Enter number of fertilizing applications"
number_of_fert_appl = float(raw_input())
print "Please Enter number of trees to be planted"
number_of_trees = float(raw_input())
Total_bill = (area_square_yards)*(35.0/5000.0) + (number_of_fert_appl*30.0) + (number_of_trees*50.0)
print "Total Bill Amount = $", Total_bill


Related Solutions

Yvette’s Yard Service (YYS) is a company that provides lawn mowing services. Suppose that the only...
Yvette’s Yard Service (YYS) is a company that provides lawn mowing services. Suppose that the only way to mow one lawn is for one worker to use one lawn mower for one day. Two workers with one lawn mower, or one worker with two lawn mowers, can still only mow one lawn per day. Draw the one-unit isoquant for YYS. Assuming that YYS’ production technology exhibits constant returns to scale, draw several more isoquants. Assuming that YYS rents lawn mowers...
GreenLawns provides a lawn fertilizing and weed control service. The company is adding a special aeration...
GreenLawns provides a lawn fertilizing and weed control service. The company is adding a special aeration treatment as a low-cost extra service option, which it hopes will help attract new customers. Management is planning to promote this new service in two media: radio and direct-mail advertising. A media budget of $4,000 is available for this promotional campaign. Based on past experience in promoting its other services, GreenLawns has obtained the following estimate of the relationship between sales and the amount...
Bob's lawn mowing service is a profit maximizing competitive firm. The following questions relate to Bob's...
Bob's lawn mowing service is a profit maximizing competitive firm. The following questions relate to Bob's short run and long run decisions regarding shutting down and exiting. For each question, determine whether Bob should shut down or operate in the short run and exit or remain in lawn mowing business in the long run. a. Suppose that Bob is payed $28 per lawn and he mows 12 lawns per day. His total cost each day is $400, of which $50...
Leila runs a lawn mowing/maintenance service for busy homeowners. She has six potential customers and each...
Leila runs a lawn mowing/maintenance service for busy homeowners. She has six potential customers and each is has a different maximum price they are willing to pay per week. The customers and the maximum price each is willing to pay each week is as follows: Customer      Price Lorraine      $40 Gilda            15 Jane            30 John            25 Bill            20 Dan            35 Leila's costs depend on the number of customers she has. Her costs (she has no sunk...
Leila runs a lawn mowing/maintenance service for busy homeowners. She has six potential customers and each...
Leila runs a lawn mowing/maintenance service for busy homeowners. She has six potential customers and each is has a different maximum price they are willing to pay per week. The customers and the maximum price each is willing to pay each week is as follows: Customer      Price Lorraine      $40 Gilda            15 Jane            30 John            25 Bill            20 Dan            35 Leila's costs depend on the number of customers she has. Her costs (she has no sunk...
Bob’s lawn-mowing service is a profit-maximizing, competitive firm. Bob mows lawns for $30 each. His total...
Bob’s lawn-mowing service is a profit-maximizing, competitive firm. Bob mows lawns for $30 each. His total cost each day is $310, of which $40 is fixed and sunk for the next 3 months. He mows 10 lawns a day. Marginal cost is always the same, no matter how many lawns are mowed. After 3 months, if Bob wants to keep mowing lawns, he needs to renew the $40 a day fixed cost obligation. +Compute marginal cost of mowing one lawn...
You can pay $110 per month, starting next month, for the next 5 years to have a lawn mowing service.
You can pay $110 per month, starting next month, for the next 5 years to have a lawn mowing service. Alternatively, you can purchase a riding lawn mower and pay $587 today and mow your own lawn for 5 years, starting next month. If you decide to mow your own lawn, how much do you save in PV terms if your investments earn 4.92% APR, compounded monthly? Note: If you would lose money, make your answer with a negative sign...
What two types of services do internal auditors provide? Provide three examples of each type of...
What two types of services do internal auditors provide? Provide three examples of each type of engagement. What steps are included in the planning phase of an assurance engagement? What is the relationship between business objectives and business assertions? What does "inherent risk" mean? What elements do well-written observations include? What is the difference between "negative assurance" and "positive assurance?" What information must final assurance engagement communications include?
Mike Simonetti opened Mike's lawn service. The following transactions occurred during july of the current year...
Mike Simonetti opened Mike's lawn service. The following transactions occurred during july of the current year : july1 ; Simonetti invested $3000 cash and $4000 lawn equipment in the business. July 2, Paid $400 for rent for the month. July 7 received $4500 cash for lawn services. July 11, paid $150 for advertisement in local paper. July14, purchased office supplies on account $300. July 16 paid $800 for lawn supplies. July16, billed customers $2000 for lawn services. July22, received a...
A community hospital is planning to expand its services to three new service lines in the...
A community hospital is planning to expand its services to three new service lines in the medical diagnostic categories (MDC-2, MDC-19, and MDC-21). Five common resources must be allocated among these three new service lines according to which will bring the most revenue. The resources are LOS, nursing hours, radiology procedures, laboratory procedures, and operating rooms. The health care manager in charge of this expansion project obtained the average consumption patterns of these resources for each MDC from other peer...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT