C++ CLASS EMPLOYEE PROGRAM IETE
#include<iostream.h> #include<conio.h> class EMPLOYEE { private: c har employeenumber[10],employeename[10]; float basic,DA,IT,netsal; public: void readdata(); void calculatenetsal(); void display(); }; void EMPLOYEE::readdata( ) { cout<<"ENTER THE EMPLOYEE NUMBER AND NAME"; cin>>employeenumber>>employeename; cout<<"enter basic salary"; cin>>basic; } void EMPLOYEE::calculatenetsal() { float grosssal; DA=(52*basic)/100; grosssal=basic+DA; IT=(30*grosssal)/100; netsal=grosssal-IT; } void EMPLOYEE::display() { cout<<:name="<<employeename<<"number="<<employeenumber<<"netsal"<<netsal; } void main() { int n,i; cout<<"enter the number of employees"; cin>>n; EMPLOYEE emp[10]; cout<<"enter the employee data"; for(i=0;i<n;i++) emp[i].readdata(); for(i