Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In Deep Water Associates operates a business that offers a variety of services t

ID: 3539000 • Letter: I

Question

In Deep Water Associates operates a business that offers a variety of services to customers who own swimming pools, including cleaning and filling pools. Write a program that calculates the price of a service call. The price includes a set $75 fee for cleaning plus an additional fee based on the amount of time it will take to fill a customers pool with water. Table 4-3 provides the necessary parameters for esti- mating the price (based on the fill-up time) for a pool. Write an application that prompts the user for the length, width, and depth of a pool, and calculates the service and fill-up price. Save the application as Swimming.java. Parameter Fee for cleaning Pool volume in cubic feet Gallons per cubic foot Pool capacity in gallons Rate of flow Minutes per hour Fee per hour for filling Explanation $75 length * width * average depth, all in feet 7.5 volume * gallons per cubic foot 50 gallons per minute 60 $8

Explanation / Answer

Parameter ExplanationFee for cleaning $75Pool volume in cubic feet Length* width*average depth, all in feetGallons per cubic foot 7.5Pool capacity in gallons Volume * gallons per cubic footRate of flow 50 gallons per minuteMinutes per hour 60Fee per hour for filling $8