Right now I'm just playing about and trying to add various things to Water, just to get a hang of them. It's probably to over-engineered to get a pass or anything, but oh well.
I'm trying to add a loop to Water, so that if an integer less then or equal to 0 is given, it will give a pithy little remark and let the user input another number.
Right now, if I remove the loop parts, everything works fine. I tried it with a do-while loop at first, and that kinda worked, except the program kept repeating "Bottles X, Water Y" over and over and I had to close my browser window to get it to stop.
Also, this is over-engineered so if anyone has any hints about what I could be doing to make things like this shorter in future, it would be appreciated. This is what it looks like without the loop parts.