Since we have a different set of royalty rates and calculation method for each book, calculating royalty payments for our writers is a complex and overwhelming task.
To ease the pain, I have written a system which will churn out all the numbers we need, and let us print a statement for each writer.