0% found this document useful (0 votes)
35 views4 pages

1 Pps Assignment

The document provides an assignment to calculate the salary of an employee given their basic pay as input from the user, including calculating HRA as 10% of basic pay, TA as 5% of basic pay, and deducting professional tax of 2% of total salary to get the net salary.

Uploaded by

Prajwal Shinde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views4 pages

1 Pps Assignment

The document provides an assignment to calculate the salary of an employee given their basic pay as input from the user, including calculating HRA as 10% of basic pay, TA as 5% of basic pay, and deducting professional tax of 2% of total salary to get the net salary.

Uploaded by

Prajwal Shinde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

AssignmentNo.1 Date:28.05.

2021
Roll No:47
Name: prajwal Sunil Shinde

Batch:C3
AssignmentName:Tocalculatesalaryofanemployeegivenhisbasicpay(takeasinput from user).
Calculate gross salary of employee. Let HRA be 10 % of basic pay and TA be 5% of
basicpay.Letemployeepayprofessionaltaxas2%oftotalsalary.Calculatenetsalarypayable
afterdeductions.

Algorithm:
Flowchart:
Code(Progrma):
basic_pay=int(input("Enter basic pay :"))

hra=basic_pay*0.1
ta=basic_pay*0.05
total_sal=basic_pay+hra+ta
tax=total_sal*0.02
salary=total_sal-tax
print("Salary of an employee is::",salary)

OUTPUT:
>>>
Enter basic pay :50000
Salary of an employee is:: 56350.0
>>>
Enter basic pay :90500
Salary of an employee is:: 101993.5

Questions :

You might also like