cal

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:

Variation #1

If called without any parameter the program should print the calendar for the current month.

Variation #2

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:

Month and year can be omitted: