0% found this document useful (0 votes)
12 views

1st Program

This program calculates an employee's salary details including basic pay, housing allowance (HRA), travel allowance (TADA), tax, other allowances (OA), and other deductions (OD). It takes the input values for basic pay, HRA percentage, TADA, tax percentage, OA, and OD from text boxes. It then calculates the total salary by adding basic pay, HRA, TADA, and OA. It also calculates the net salary by subtracting tax and OD from the total salary.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

1st Program

This program calculates an employee's salary details including basic pay, housing allowance (HRA), travel allowance (TADA), tax, other allowances (OA), and other deductions (OD). It takes the input values for basic pay, HRA percentage, TADA, tax percentage, OA, and OD from text boxes. It then calculates the total salary by adding basic pay, HRA, TADA, and OA. It also calculates the net salary by subtracting tax and OD from the total salary.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1st Program

/* Employ Salary Datails */


Private Sub Command1_Click()

Dim basic, hra, tada, tax, oa, od As Integer

basic = Val(Text2.Text)

hra = basic * (Val(Text3.Text) / 100)

tada = Val(Text4.Text)

tax = basic * (Val(Text5.Text) / 100)

oa = Val(Text6.Text)

od = Val(Text7.Text)

Text8.Text = basic + hra + tada + oa

Text9.Text = Val(Text8.Text) - (tax + od)

End Sub

You might also like