In the modulus excercise with moon phases it it assumed that it’s full moon - that is day 14 into the cycle.
help if it’s currently, let’s say day 6 into the cycle?
This doesn’t really demonstrate how modulus can be useful for that problem because the answer 14 to me seems coincidental because the current day (14 or 6 or other) isn’t even provided in the formula.
I understand that part how it’s supposed to work.
My point was that this excercise does not effectively demonstrate how modulus can be useful for getting to know what moon phase will be in a year.
Namely, which moon-day will it be in a year if it’s currently day 6 (NOT day 14)?
How does the code provided help us if it’s day 6, not day 14?
Note: the current day (full moon as assumed in the excercise - that is day 14, or 6 or whatever day) is not even included in the formula - which means the current day does not change anything, therefore it is a coincidence that it happens to be number 14, which ultimately means it is a bad example of the usefulness of modulus.