[go: up one dir, main page]

0% found this document useful (0 votes)
98 views7 pages

C ++ Yukt

This document is a C++ project file created by Yukt koshale, a class 12 science student. It contains an acknowledgement thanking the principal, computer science teacher, and parents for their support. It also contains a certificate confirming Yukt successfully completed the project under the guidance of their CS teacher. The main part of the project is a C++ program to calculate the net salary of employees by taking the basic salary, calculating DA and IT, and displaying the results.

Uploaded by

Vicky Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views7 pages

C ++ Yukt

This document is a C++ project file created by Yukt koshale, a class 12 science student. It contains an acknowledgement thanking the principal, computer science teacher, and parents for their support. It also contains a certificate confirming Yukt successfully completed the project under the guidance of their CS teacher. The main part of the project is a C++ program to calculate the net salary of employees by taking the basic salary, calculating DA and IT, and displaying the results.

Uploaded by

Vicky Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

C++ PROJECT FILE

MADE BY- Yukt koshale


Class – XII science
[Pick the date]

J.P.V. D.A.V. PUBLIC


SCHOOL
Session- 2018-19
ACKNOWLEDGEMENT
I would like to express my thanks of
gratitude to our principal sir Mr. S. k. Sinha
sir and to my C.S. teacher Mrs. Seema
Sharma mam who gave me this golden
opportunity to work upon this wonderful
project. I would also like to thanks my
parents who helped me a lot in
accomplishing my project in time.
CERTIFICATE
This to certify that Yukt koshale a student
of class XII science has successfully
completed the project under the guidance of
miss Seema Sharma(subject teacher) during
the academic year 2018 -19 in partial
fulfillment of C.S. practical examination
conducted by AISSCE.

Signature of external examiner signature of C.S. examiner

Signature of principal
C++ PROGRAM TO CALCULATE
EMPLOYEE NET SALARY

Given that an EMPLOYEE class contains following members:


Data members : Employee_ Number, Employee _Name, Basic, DA,

IT, Net_ Salary

Member functions: to read the data, to calculate Net_ Salary and to


print data members.
Write a C++ program to read the data of N employees and compute
Net_ Salary of each employee.

(Dearness Allowance (DA) = 52% of Basic and Income Tax (IT) =


30% of the gross salary. Net_ Salary = Basic + DA - IT)

CODING-

#include< iostream. h>


#include<conio.h>
#define SIZE 5
class emp
{
float basic, da , it, netsal;
char name[20],num[10];
public:
void get data();
void net_ sal();
void disp data();

};

void emp::getdata()
{
cout<<"\n Enter employee number: "
;
cin>>name;
cout<<" Enter employee name: " ;
cin>>num;
cout<<"Enter employee basic salary in Rs: " ;
cin>>basic;
}

void emp::net_sal()
{
da=((0.52)*basic );
float gsal=da+basic;
it=((0.3)*gsal);
netsal=gsal-it;
}

void emp::dispdata()
{
cout
<<"\n Employee number: "<<name
<<"\n Employee name: "<<num
<<"\n Employee netsalary:
"<<netsal<<" Rs.";

}
void main()
{
clrscr();
emp ob[SIZE];
int n;

cout<<"\n\n***********************************"
<<"\nCalculation of Employee Net Salary"
<<"\n***********************************"
<<"\n Enter the number of employees";
cin>>n;
for(int i=0;i<n;i++)
{
ob[i].getdata();
ob[i].net_sal();
}
clrscr();
cout<<"\n-----------------"
<<"\n Employee Detail::"
<<"\n-----------------";
for( i=0;i<n;i++)
{
cout<<"\n\n Employee:"<<i+1
<<"\n ----------";
ob[i].dispdata();
}
getch();
}
OUTPUT

You might also like