Garden Water Budget Simulator
Explore a fictional rainwater storage system for a school garden. This is a simplified water-budget model, not a recommendation for watering real plants.
Starter challenge: find the TODO in JavaScript and complete the missing rule. Compare with the finished project.
Sample rain inputs over seven days: 0, 6, 0, 0, 14, 0, 3 L. Rain arrives before water is used.
Set parameters and start.
Day
0/7
Water left
8 L
Unmet demand
0 L
Overflow
0 L
| Day | Rain L | Used L | Left L | Overflow L | Unmet L |
|---|
Assumptions: no leaks, evaporation, collection losses or soil dynamics; all values are fictional. Change one parameter at a time, reset, and compare results.