Ask Experts » Computers » Software »

How to write a program in C# to calculate DA, HRA and PF of an Employee in a company?

Date: 16 Feb 2011   Group: Computers    Category: Software   


Write a program in C# to calculate DA, HRA and PF of an Employee in a company?


Find Answers

Author: Dharmendra Kumar Singh    22 Feb 2011      Member Level: Gold     Points : 3  (Rs 2)    Voting Score: 0

The program for calculating DA, HRA and PF of an Employee in a company using c# is as follows.


using system;
class salary
{
string ename;
float bsal; hra; da; pf;
void read();
{
console.WriteLine("Enter the Employee Name");
bsal=float.pase(console.ReadLine());
}
float sal()
{
float nsal
hra=20*bsal/100;
da=10*bsal/100;
pf=15*bsal/100;
gsal=bsal+da+hra+pf;
return gsal
}
static void main()
{
salary s=new salary();
s.read();
float n=s.cal();
console.WriteLine("Gross Salary is",+gsal);
}
}



I hope this will be useful for you.

Dharmendra Singh

Answers      





Post answer or solution to "How to write a program in C# to calculate DA, HRA and PF of an Employee in a company?"

You can earn revenue online from Google AdSense and our revenue sharing programs by post valid, self written answers for the problem How to write a program in C# to calculate DA, HRA and PF of an Employee in a company?




You must Sign In to post a response.


Next Question: What is a Web service in C# and how to create a web service?
Previous Question: How to write a program in HTML to create a Registration form?
Return to Question Index
Ask Question to Expert
Category: Software

 
Related Questions
Popular Tags   What are tags ?   Search Tags  

Awards & Gifts
Active Members
TodayLast 7 Daysmore...

ISC Technologies, Kochi - India. Copyright © All Rights Reserved.