How to calculate pension using python ~VS Code

preview_player
Показать описание
#calculate pension using python
#calculate pension
#python
#VS Code

pension department has issued new payment scheme on the payments of retired government employees. They need to implement a system to register the government employee by taking following details.

• Employee Name
• National Identity Card Number
• Service Start Year
• Service End Year
• Service Category (executive or non-executive)

Once the retired employee get registered with the system they can get their monthly pension payment. The payment schemes are as follows.
When,
• total number of service years between 10 and 15 years
• executive basic salary 25000LKR
• non-executive basic salary-28000LKR
• executive pension scheme = (1/5th of the basic salary + 1500 as living allowance)* 1/3 of the service period
• non-executive pension scheme = (1/5th of the basic salary + 1500 as living allowance)* 1/3 of the service period

When,
• total number of service years between 15 and 25 years
• executive basic salary-35000LKR
• non-executive basic salary-30000LKR
• executive pension scheme = (1/5th of the basic salary + 1500 as living allowance + 10% of basic as bonus)* 1/3 of the service period
• non-executive pension scheme = (1/5th of the basic salary + 1500 as living allowance + 1000 as bonus)* 1/3 of the service period

When,
• total number of service years less than or equal to 30 years
• executive basic salary-45000LKR
• non-executive basic salary-38000LKR
• executive pension scheme = (1/5th of the basic salary + 1500 as living allowance + 15% of basic as bonus)* 1/3 of the service period
• non-executive pension scheme = (1/5th of the basic salary + 1500 as living allowance + 10% as bonus)* 1/3 of the service period

There will be 10% of vat deduction for every pension payment and you are supposed to create a function to calculate the pension and relevant information has to be passed in a list as parameter. The output should be as follows.
Рекомендации по теме
Комментарии
Автор

Hello pd droid I followed along with your video and I am getting this error, where it says: name 'self' not defined

cleetus
visit shbcf.ru