This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:cprog:fall2023:projects:mmf0 [2023/09/19 15:38] – [Add quartered value back to two digit year] cmazzara | notes:cprog:fall2023:projects:mmf0 [2024/02/26 06:30] (current) – [else] hcopp1 | ||
---|---|---|---|
Line 22: | Line 22: | ||
^ Day ^ Value | | ^ Day ^ Value | | ||
| Monday | | Monday | ||
+ | ^ Day ^ Value | | ||
+ | | Tuesday | ||
+ | ^ Day ^ Value | | ||
+ | | Wednesday | ||
+ | ^ Day ^ Value | | ||
+ | | Thursday | ||
+ | ^ Day ^ Value | | ||
+ | | Friday | ||
+ | ^ Day ^ Value | | ||
+ | | Saturday | ||
+ | ^ Day ^ Value | | ||
+ | | Sunday | ||
+ | ^ Day ^ Value | | ||
+ | | Sunday | ||
====Edge case: leap years==== | ====Edge case: leap years==== | ||
Line 33: | Line 46: | ||
====else if==== | ====else if==== | ||
+ | <color # | ||
+ | |||
+ | Example: | ||
+ | < | ||
+ | if (condition0) | ||
+ | { | ||
+ | If condition0 is met do this .... | ||
+ | } | ||
+ | else if (condition1) | ||
+ | { | ||
+ | if condition0 isn't met and condition1 is; Do this .... | ||
+ | } | ||
+ | </ | ||
====else==== | ====else==== | ||
+ | |||
+ | ELSE is put at the end of a IF statement. ELSE will first check if the condition of the original IF statement was met, if it wasn't met, It then does something | ||
+ | |||
+ | Example: | ||
+ | < | ||
+ | if (condition0) | ||
+ | { | ||
+ | If condition0 is met do this .... | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | if condition0 isn't met do this .... | ||
+ | } | ||
+ | </ | ||
====RELATIONAL OPERATORS==== | ====RELATIONAL OPERATORS==== | ||