================================================================================
  Question 15: Employee Payroll Class
================================================================================

FULL QUESTION:
Create a class Employee with attributes:
- emp_id
- name
- basic_pay

Add methods:
1. calculate_salary():
   - HRA (House Rent Allowance) = 20% of basic pay
   - DA (Dearness Allowance)     = 10% of basic pay
   - PF (Provident Fund)        = 12% of basic pay
   - Gross Salary = Basic + HRA + DA
   - Net Salary   = Gross Salary - PF
2. display_salary_slip(): Prints a formatted salary breakdown slip.

SHORT QUESTION:
Employee payroll class calculating allowances, deductions, gross salary, and net salary.

================================================================================
README & SETUP INSTRUCTIONS:
================================================================================
# Question 15: Employee Payroll Class

- Prerequisites: Python 3.x (Standard library only).
- Setup: None.
- How to Run: python question_15.py
- Expected Behavior: Computes salary allowances and deductions, rendering an itemized salary slip.

================================================================================
SOURCE CODE FILES:
================================================================================

1. question_15.py
--------------------------------------------------------------------------------
class Employee:
    def __init__(self, emp_id, name, basic_pay):
        self.emp_id = emp_id
        self.name = name
        self.basic_pay = basic_pay

    def calculate_salary(self):
        return self.basic_pay + (self.basic_pay * 0.2) + (self.basic_pay * 0.1)

    def display(self):
        print(f"Employee ID  : {self.emp_id}")
        print(f"Name         : {self.name}")
        print(f"Gross Salary : {self.calculate_salary()}")

employee = Employee("CS16", "Ashbi", 50000)
employee.display()
--------------------------------------------------------------------------------
