Question: Julia Anaconda(jupyter) programming. Program name: Pay-slip generation Problem statement: 1. Running Pay 2. Allowances 3. Deduction More detail about each section is given in following

Julia Anaconda(jupyter) programming.

Program name: Pay-slip generation

Problem statement:

1. Running Pay

2. Allowances

3. Deduction

More detail about each section is given in following sub-section.

Running Pay

Each employee is given certain number of increments equal in number to his experience years. An increment means that the employee is paid some extra amount for each increment. The running pay(RP) is computed by using following formula

RP=basic salary+number of incrementper-increment amount.

However the catch here is thar the basic salary (BS) and per-increment (PI) amount are determined by grade of the employee according to following table. (HINT: nested if else to set basuc salary and per increment amount depending on grade)

Grade Basic salary Increment
A PKR10000/- PKR700/-
B PKR12900/- PKR910/-
C PKR21700/- PKR1500/-
D PKR32600/- PKR2800/-

so for example if an employee has grade B and he has 3 years of experience.Then, his basic salary will be 12900/- and number of increment will be 3. So the running pay will be 12900+ 3 *910=15630.

Allowances

The allowances section contain types of allowances (monetary benefits) to employees depending on their basic salary and running pay. Three types of allowances are compured in this section according to rules given below.

1. House rent allowances (HRA): computed as 45% of running pay.

2. Social security Benefits(SSB): computed as 30% of basic salary.

3. Ad- hoc relief allowances (ARA): A fixed amount of PKR 3000/- is given if the employee has grade A and is older than 40 years, otherwise , a fixed amount of PKR1500/- is given.

So if employee running pay is 15630/-, then his HIRA =1563045/100=7033/-, SSB =1291030/100=3873/- and ARA= 1500/- as his grade is B .At the end of alllowances section, employees Gross Pay (GP) is also shown, which is computed by summing up RP and all the allowances. (e.g GP=RP+HIRA+SSB+ARA= 15630+7033+3837+1500=28036. The gross pay is given to employee to nearest multiple of 100. E.g. in our examplr the gross pay is computed as PKR 28036/- then the employee is given PKR 28000/- and 36 rupees are donated to a charity organization.( HINT: use modulus% operator to determine the donation amount)

Deduction

The deduction section contains certain types of cuts(monetary deductions), such as income tax, on employee gross pay. Three types of deductions.

A. Income Tax IT is deducted using following rules on annual income where AI is computed by multiplying the gross pay (GP) with 12. E.g. in our example AI is 2800012=336000 which corresponds to 0% incime tax i.e. no income tax. If for some employee, the gross pay is 55000/- then AI= 55000*12=660000 which according to following table corresponding to following table corresponds to annual income tax as 4.75% of gross pay (i.e.6600004.75/100=31350/- annually, so the monthly income tax will be 31350/12=2612)(HINT: use nested if else statement along with logical operators to determine the slab of income tax)

Slab

Annual GP

Lower limit

Annual GP

Upper limit

IT rate(%of

Gross Pay)

1 pkr0/- Pkr400,00- 0
2 pkr400,001/- Pkr650,000/- 2.5
3 pkr650,001/- Pkr1,000,000/- 4.75
4 pkr1,000,001/- Pkr1,500,000/- 7
5 pkr1,500,001/- Infinity 11.5

B. General provident fund (GPF) 10% of monthly gross pay. In our example, GPF= 28,00010/100=2,800.

C. Donation amount, which is computed from gross pay as explained in previous section is also displayed here.

At the end of deduction sections, total deduction amount is displayed, whicg is obtainrd by simply summing IT, GPF and the donation amount. In our example, total deduction =0+2800+36=2836/-

Finally, at the end of the pay slip, Net pay is shown which is computed by subtracting deductions from gross pay. In our example, Net pay=28,036-2836=25,206.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!