You have a 3L jug and a 5L jug. You need to fill the 5L jug with exactly 4L of water. Write an algorithm to solve this problem. I will award Brainliest!​

Respuesta :

Fill the 3L jug, then pour its contents into the 5L jug.

Fill the 3L jug again, then pour as much of it (2L) as you can into the 5L jug.

Now the 5L jug is full, and the 3L jug is carrying 1L of water.

Empty the 5L jug.

Pour the 1L of water from the 3L jug to the 5L jug.

Finally, fill up the 3L jug, then transfer its water into the 5L jug. It now has 4L of water.

ACCESS MORE
EDU ACCESS