Final Pranab K Sharma Cs Project
Final Pranab K Sharma Cs Project
PROJECT ON
AT
KENDRIYA VIDYALAYA
SUBMITTED BY
PRANAB KUMAR SHARMA
XI - A
CERTIFICATE
Teacher's Signature :
ACKNOWLEDGEMENT
We would like to extend our sincere thanks and gratitude to our teacher Mr
Amar Singh, PGT CS Kendriya Vidyalaya…….. for extending all the support
and computing facilities needed for the completion of this project.
1. INTRODUCTION ………………………. 1
2. OBJECTIVE AND SCOPE………….. 2
3. REQUIREMENTS ……………………….. 4
4. DESIGNING ………............……………. 5
5. SOURCE CODE………….....…………. 6
6. OUTPUT SCREENSHOTS..……….. 10
INTRODUCTION
Page | 1
OBJECTIVE AND SCOPE
Objective:
Page | 2
Scope:
Page | 3
REQUIREMENTS
Python:
Ms Word:
DESIGNING
Page | 4
Flow Chart
Page | 5
SOURCE CODE
def calculate_hra(basic_pay):
return 0.28 * basic_pay # 28% of basic pay for HRA
def calculate_da(basic_pay):
return 0.5 * basic_pay # 50% of basic pay for DA
def calculate_tax(gross_salary):
return 0.15 * gross_salary # 15% tax on gross salary
def calculate_pf(basic_pay):
return 0.05 * basic_pay # Fixed 5% PF deduction
def calculate_net_salary(basic_pay):
hra = calculate_hra(basic_pay)
da = calculate_da(basic_pay)
Page | 6
gross_salary = basic_pay + hra + da
tax_deduction = calculate_tax(gross_salary)
pf_deduction = calculate_pf(basic_pay)
net_salary = gross_salary - tax_deduction - pf_deduction
return net_salary, hra, da, tax_deduction, pf_deduction
def main():
# Input the number of employees
num_employees = int(input("Enter the number of employees:
"))
Page | 7
# User input for employee details
employee_id = input("Enter Employee ID: ")
employee_name = input("Enter Employee Name: ")
basic_pay = float(input("Enter Basic Pay: "))
Page | 8
# Append the dictionary to the list
employees_details.append(employee_details)
if __name__ == "__main__":
main()
OUTPUT SCREENSHOTS
Page | 9
Page | 10
Page | 11
Page | 12