Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please modify the employee data program using the requirements below in C++. You

ID: 3536766 • Letter: P

Question

Please modify the employee data program using the requirements below in C++. Your help is greatly appreciated!

in C++,

here are the requirements;

1 create a class with 2 objects

2 contain description about the objects within an array.

3 use function to process data

4 use file I/O to inout data and output results

5 formatted output

6 presentation

here is the working program;


#include <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

#include

#include


using namespace std;





char empname[20];


char desig[20];


float bsal,hra,da,netsal;


void calculate();


public:emp()


{


empcode=0;


bsal=0.0;


hra=0.0;


da=0.0;


netsal=0.0;


strcpy_s (empname,"No middle name");


strcpy_s (desig,"No middle name");


}


void


input();


void


output();

}ob[10];


void emp::calculate()


{


netsal=bsal+hra+da;

}

void emp::input()

{


cout <<" Enter the employee code:" ;


cin >>empcode;


cout<<" Enter the employee name:";


gets(empname);


cout<<" Enter designation:";


gets(desig);


cout<<" Enter the basic salary:";


cin>>bsal;


cout<<" Enter HRA:";

cin>>hra;


cout<<" Enter DA:";


cin>>da;


calculate();


}


void emp::output()


{


cout<;>


cout<;>


cout<;>


cout<;>


}


void


main()


{


int i,n;


cout<<" Enter the number of employees:";


cin>> n;


for(i=0;i;i++)>

{


ob[i].input();


}


cout<<" Code Name Salary ";


for(i=0;i;i++)>


{


ob[i].output();


cout <;>

}

cin.get();

}



Explanation / Answer

hey! I can help you out in this programming question and others if you just add me on skype...my skype id is mohammad.sarmad.junaid...

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote