Question: Write a pseudocode and a C++ program that solves the following problem. Two large and 1 small pump can fill a swimming pool in 4

Write a pseudocode and a C++ program that solves the following problem. Two large and 1 small pump can fill a swimming pool in 4 hours. One large and 3 small pumps can also fill the same swimming pool in 4 hours. The user will enter how many large pumps and small pumps are used. Display how many hours it will take to fill the swimming pool with the specified numbers of pumps. Assume user inputs are larger or equal to 0 and are within reasonable ranges. Here is a sample run:

Enter the number of large pumps:4

Enter the number of small pumps:4

It will take 1.66667 hours to fill up the pool with 4 large pumps and 4 small pumps.

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!