You are on page 1of 1

using System;

using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EmpID_071713
{
class Employee
{
private string EmployeeName, Department;
private int BasicSalary, HRA, DA, TA, GrossSalary;
private double NetSalary;

public void ReadData()


{
EmployeeName = Console.ReadLine();
Department = Console.ReadLine();
BasicSalary = Convert.ToInt32(Console.ReadLine());
HRA = Convert.ToInt32(Console.ReadLine());
DA = Convert.ToInt32(Console.ReadLine());
TA = Convert.ToInt32(Console.ReadLine());

GrossSalary = (BasicSalary + HRA + DA + TA);(Here is not calculating )

NetSalary = GrossSalary - (GrossSalary * 0.22);(Here is not Calculating)


}
class Program
{
static void Main(string[] args)
{
Employee objEmp = new Employee();
Console.WriteLine("Enter EmpName, Department, Basicsalry, Hra, Da,Ta");
objEmp.ReadData();
//objEmp.Gross();
//objEmp.Net();
Console.ReadLine();

}
}
}
}

You might also like