Start
→ Enter Employee Data (EmployeeID, Name, Department, Position, Salary)
→ Validate Employee Information
→ If Valid?
→ Yes → Save Employee Data to Database
→ No → Show Error & Re-enter Employee Data
→ Record Attendance (AttendanceID, EmployeeID, Date, HoursWorked)
→ Validate Attendance Data
→ If Valid?
→ Yes → Store Attendance in Database
→ No → Show Error & Re-enter Attendance
→ Calculate Salary (Based on Hours Worked & Salary Rate)
→ Deduct Taxes & Other Deductions
→ Generate Payroll Record (PayrollID, EmployeeID, Month, Year, NetSalary, TaxDeduction)
→ Store Payroll in Database
→ Generate Salary Slip
→ Notify Employee (Email/SMS)
→ End
make this er diagram