Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to show the increase in water depth for a swimming pool that is 20' x 40' [20 feet x 40 feet]. Assume

Write a program to show the increase in water depth for a swimming pool that is 20' x 40' [20 feet x 40 feet]. Assume that the pool is 6' deep in all places and you need to fill the pool to within 6" (6 inches) of the top. Hence, the pool is 6' deep [Note: was 3], 20' wide and 40' long but you must stop the water before it gets within 6 of the top (water would then be 2.5 deep). You are anticipating a fun-filled spring and summer so you must fill the pool with your garden hoses. Here are the details for your calculations and assumptions: 1) The pool fills at no less than 0.5" per hour and no more than 2.25 per hour, the fill-rate. Hence, youll need to ask the user for the input of the amount per hour. Allow up to 2 decimals and not more than 2.25 per hour. a. Compute the gallons per hour and fill-rate into the pool. You will need to calculate the volume of the pool and the gallons in that volume per hour. See the Internet! 2) You need to determine the gallons the pool has after EACH 2 [Note: was hour] until the pool is full. [Note: 2 per hour fill-rate is easy but youll need to calculate the fill-rate when the fill-rate is NOT 2 per hour. The fill-rate is a variable user-entered.] Display your results as SETs of output of twenty (20) per display page in increments of 2 displays (cout). The user MUST select Y or y for continuation until the next 20. Make sure you terminate the output once completed. That is, don't repeat the last line and don't print blank lines once you've reached the final calculation. a. Display Counter, Time, Time, Water Depth, Gallons, Weight i. Format: 1. Counter: nn [This is a counter which is an associated counter = the rows output. That is, what row is this for THIS output. Youll need to reset this to 1 when you display a new screen for data. 2. Time [Hours]: hours.decimal [hh.nnn] 3 decimals 3. Time [Hours]: Standard hours & minutes format of hh.mm.ss.nnn [3 decimals] 4. Water depth: feet.decimal [nn.nnnn] 4 decimals associated with the current Counter and Time. 5. Gallons: [nnnnn.nnnnn] 5 decimals; in pool associated with the current Counter and Time 6. Weight: What is the WEIGHT of the water in the pool? [Note: you will need to convert the volume of the water to weight. Please help in with this program as soon as possible between now and tomorrow. It is that important. Please and please. It shows here expert answers in as little as 30minutes. Will be waiting on that. Thanks

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started