|
Post by donnybowers on Jan 2, 2022 23:34:20 GMT
Rain water collection calculator. Nothing fancy, just a simple console calculator to see how much water runs off of your roof during X inches of rainfall. Could be handy if you're setting up a rain barrel water catchment system.
'Calculate how many gallons of water flow ' off your roof for a given amount of rain.
input "How many square feet of roof? ";squareFeet squareInches=squareFeet*144 '144 square inches in each square foot input "How many inches of rain? ";inchesRain
cubicInches=squareInches*inchesRain gallons=cubicInches/231' a gallon of water is 231 cubic inches
gallons$=using("#######", gallons) print print gallons$;" gallons of rain water."
|
|