Assignment

Write a program that takes the employee’s gross salary as input and then prints the employee’s pay slip to the terminal in a nice format (specified below). The pay slip shows the gross salary (brutoloon), the social security contribution (RSZ bijdrage), the taxable income (belastbaar inkomen), the company withholding tax (bedrijfsvoorheffing), and the net salary (nettoloon) of the employee. The focus of this exercise is on formatting strings in the desired layout. The desired layout can be seen in the example.

Specifications

Example

Below is an example execution of the task. The text in red represents user input and logically is not printed by your program.

brutoloon werknemer:
 2500
==========================================
|               LOONFICHE                |
==========================================
|Brutoloon                   |   2500.00 |
|----------------------------------------|
|RSZ bijdrage                |   -326.75 |
|----------------------------------------|
|Belastbaar inkomen          |   2173.25 |
|----------------------------------------|
|Bedrijfsvoorheffing         |   -651.98 |
|----------------------------------------|
|Nettoloon                   |   1521.28 |
|----------------------------------------|

Remarks and Tips