- #1
hexlan
- 2
- 0
I've been relearning c++ and my friend gave me a problem to try and solve programmatically. Here is the set up:
There is a pitcher with a gallon of water.
The water is being poured out beginning at a rate of 2x milliliters per second.
x begins at 1 and increases by 1 over 5 seconds.
The goal is to find out how long it takes to pour out all the water.
I finished writing a program and got an answer, but unfortunately both me and my friend are quite rusty with our calculus and have no way of checking the answer.
Could someone possibly provide an answer, or better yet go through the proper way of solving it.
There is a pitcher with a gallon of water.
The water is being poured out beginning at a rate of 2x milliliters per second.
x begins at 1 and increases by 1 over 5 seconds.
The goal is to find out how long it takes to pour out all the water.
I finished writing a program and got an answer, but unfortunately both me and my friend are quite rusty with our calculus and have no way of checking the answer.
Could someone possibly provide an answer, or better yet go through the proper way of solving it.