Application Kata „cal“
Write a command line program that prints a monthly calendar on the console.
The program will be called with month and year as command line parameters and prints the calendar fort he given month on the console:
C:>cal 2 2014
Su Mo Tu We Th Fr Sa
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
If called without any parameter the program should print the calendar for the current month.
The day of week that starts the week can be given as an optional third parameter. In Germany for example the month starts on Monday:
C:>cal 2 2014 Monday
Month and year can be omitted:
“I am the founder of Majer Consulting and Majer Training and an experienced software developer, trainer and consultant. I have been on the road in the SAP world since 1998, supporting numerous projects, and have developed a passion for software engineering, software testing and agile development methods such as TDD. When I am not servicing customers or holding seminars, I am speaking at conferences or writing my next book.”