Code is correct but I cannot for the life of me understand what Modulus is. How do i know what the moon phase will be in a year with what I have written in the exercise?
I divide the number of days in a year(365) with how many days it takes the moon to rotate around the earth(27) and the result is: 13.518518518518519
This means that the moon rotates the earth 13.518518518518519 times in a year.
Then I do the same division but with a modulus sign and get the answer: 14
What does 14 even mean? Where did it come from?
I feel like If I dont understand this basic concept then I will have a real hard time in tthe future.
Could anyone explain a little better what modulus is and what its meaning is in this exercise?
Thanks in advance!