Rhythm notation converter (task #1)
I think your condition for putting the '+' isn't right: it should be beatTime-noteId &gt; 0 instead of beatTime &gt; 0.

For the given example there will be no difference in the output, but test it with  e.g. 4 4 1.125 as command line arguments: 1.125 matches a full 16th but your code prints 1.125 2.1.3+ instead of 1.125 2.1.3.