Question: I am having issues with the following program to fullfull the following in the program listed to have three seperate programs Program 1- netpay average

I am having issues with the following program to fullfull the following in the program listed to have three seperate programs

Program 1- netpay average Calculate the average of all employee net pays (salary). Display the computations and average of at least 5 employees.

Program 2 - sort netpay (regular sort- exchange or selection) Sort the net pays (salary). For now, display only the net pays before sorting and after sorting.

Program 3 - Sort the netpay by the pointers Sort the net pays (salary) using an array of pointers (do not change the data in the original array). For now, display only the net pays before sorting Sort the net pays (salary) using an array of pointers (do not change the data in the original array). For now, display only the net pays before sorting and after sorting.

#include #include #include

using namespace std;

int n; string firstname[100],lastname[100]; int hw[100],empid[100]; char stat[100]; float hr[100],oth[100],otp[100],regp[100],gross[100],tax[100],net[100];

void getvalue(int n) { int i; for(i=0;i { cout<<"Employee "<

void display(int n) { int i; cout<<" DR. EBRAHIMI'S PAYROLL INSTITUTE "; cout< cout<<" ===================================================================================== "; for(i=0;i { cout< }

}

int main() { int number;

cout<<"Enter the number of employees: "; // to get the number of details going to enter cin>>number; getvalue(number); setvalues(number); display(number); }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!