ScratchData LogoScratchData
Back to CarsonBurza924110's profile

Add the remix number to your date. (1)

CACarsonBurza924110•Created September 23, 2023
Add the remix number to your date. (1)
0
0
5 views
View on Scratch

Instructions

Add the remix number to your date. (ATRNTYD) To remix, add the remix number to your date. If the current date is September 23rd, 2023, create a square with that day. Example: If you have 09/23/2023 and the remix number is 22 when you remix, add 22 days. 22 + 23 = 45 Check the number of days your month has. If your day result exceeds that number, remove it. September has 30 days, so we need to take 30 away from 45. 45 - 30 = 15 Repeat this until your day no longer exceeds the number of days on your month. Another example is that the remix number is 100 and your date is 03/21/2025. 21 + 100 = 121. March has 31 days. 121 - 31 = 90 Add 1 to your month. 3 + 1 = 4. Your month became April. Check the number of days your month has again. Your month still exceeds that number. April has 30 days. 90 - 30 = 60 Add 1 to your month again. 4 + 1 = 5. Your month is now May. Check the number of days your month has once again. Your month still exceeds that number. May has 31 days. 60 - 31 = 29 Add 1 to your month once again. 5 + 1 = 6. Your month is now June. Check the number of days your month has again. June has 30 days. Your day no longer exceeds that number anymore. Results are 06/29/2025. Once another example is that the remix number is 10 and your date is 02/19/2025. Add 10 to your day. 10 + 19 = 29. If you reach 29 while your month is February, check to see if it's a leap year. If it's not a leap year, remove 28 from your day. If yes, then if your day result exceeds 29, remove 29 from your day. Your year probably would not be a leap year because leap years only occur every 4 years. 29 - 28 = 1 Results are 03/01/2025. E.G. Your date was 02/10/2024 and you added 20. 2024 is a leap year, so you must remove 29 from your day. 30 - 29 = 1 Results are 03/01/2024.

Project Details

Project ID897738427
CreatedSeptember 23, 2023
Last ModifiedSeptember 23, 2023
SharedSeptember 23, 2023
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root