User Tools

Site Tools


notes:cprog:spring2024:projects:mmf0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:cprog:spring2024:projects:mmf0 [2024/02/26 21:45] – external edit 127.0.0.1notes:cprog:spring2024:projects:mmf0 [2024/02/29 01:53] (current) – [Add quartered value back to two digit year] hcopp1
Line 15: Line 15:
 NOTE: Use () to ensure the code does things in the order you want. NOTE: Use () to ensure the code does things in the order you want.
 ====Add quartered value back to two digit year==== ====Add quartered value back to two digit year====
-Add quartered value to the last two digits of the current year.+Add quartered value (output of last sections equation) to the last two digits of the current year (output of first section).
 ====Subtract best fitting multiple of seven==== ====Subtract best fitting multiple of seven====
  
Line 38: Line 38:
 ====Edge case: leap years==== ====Edge case: leap years====
  
 +To find the edge case you have to check if there is a remainder when dividing the year by 4
 =====SELECTION===== =====SELECTION=====
  
notes/cprog/spring2024/projects/mmf0.1708983931.txt.gz · Last modified: 2024/02/26 21:45 by 127.0.0.1