Just an exercise to the programming kata "Cal"
Write a Programm, which monthly calendar prints to console. Possible commandline parameters are
- none - current month and year is printed
- the starting day of week → reorders the week with current month and year
- month and year
- month, year and start day of week.
Possible output looks like:
C:>cal 2 2014
Februar 2014
So Mo Di Mi Do Fr Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
Taken from http://ccd-school.de/coding-dojo/application-katas/cal