haas/fall2026/unix/eoce/EoCE.md
... ...
@@ -108,11 +108,13 @@ mapping against a table. To wit:
108 108
For this trick to work, we need to be familiar with the following table
109 109
(a map of days to numeric values):
110 110
111
+```
111 112
|-----|-----|-----|-----|-----|-----|-----|-----|
112 113
| Sun | Mon | Tue | Wed | Thu | Fri | Sat | Sun |
113 114
|-----|-----|-----|-----|-----|-----|-----|-----|
114 115
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
115 116
|-----|-----|-----|-----|-----|-----|-----|-----|
117
+```
116 118
117 119
NOTE: Depending on how you implement your algorithm, you may find your
118 120
approach prefers 7s OR 0s for your Sunday value... you aren't going to be
... ...
@@ -183,9 +185,11 @@ Why multiple of 7? Seven days in a week.
183 185
184 186
Some multiples of 7:
185 187
188
+```
186 189
|------|------|------|------|------|------|------|------|
187 190
| 0 | 7 | 14 | 21 | 28 | 35 | 42 | 49 |
188 191
|------|------|------|------|------|------|------|------|
192
+```
189 193
190 194
So, with a value of 17, what is the largest multiple of 7 that is still
191 195
less than (or equal to) 17?