Our club newsletter has a little calendar of the month inthe corner. Every month I lay it out by hand and get itwrong. Tell it how many days the month has and which daythe 1st lands on, and it prints the grid.Write your requirements list before you write any code. Input, calculate, output, and anything you had to decide for yourself.
if does it.% answers it: work out which column each day lands in.Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 1112 13 14 15 16 17 1819 20 21 22 23 24 2526 27 28 29 30This is September 2027: 30 days, starting on a Wednesday, with Sunday counted as 0. February 2026 starts on a Sunday and ends on a Saturday — try it.
Your requirements list and your program file, named cc-month-calendar.