0

I'm having a senior moment and am unable to work out a simple formula for the volume of water in my water-but, question below:

I have a blue 120cm high water-but, it also has a ultrasonic sensor to measure where the water level is.

When the water-but is full the sensor shows there is 5cm between it and the water (this is 100% full).

When the water-but is empty the sensor shows there is 86cm between it and the water (this is 0% full).

So when the water-but is full and starts emptying what is the calculation to work out the percentage of water remaining?

Thanks in advance.

2 Answers2

1

If the sensor is showing $s$ cm then the proportion full is $$\frac{86-s}{86-5}=\frac{86-s}{81}$$

Multiply by $100$ to get a percentage

Henry
  • 157,058
0

Assuming that the lateral section always has the same area (like in a cylinder) or a cube, then the percentage is: $$ P = 100\% \times \frac{86 - h}{86 - 5} = 100\% \times \frac{86 - h}{81} $$

So, when the height is $h = 5$ cm, the percentage will be $100\%$ and when the height is $h = 86$ cm, the percentage will be $0\%$.

(Henry posted his answer while I was writing mine.)

  • Hi Ertxiem, thank you for answering aswell, I would like to give you and Henry both a green acceptance mark but it has come down to who answered first. Appreciated just as much, thanks. – webdev27 Aug 06 '19 at 19:26
  • Thank you for your comment. No worries regarding the accepted answer, it should given to Henry. – Ertxiem - reinstate Monica Aug 06 '19 at 21:30