x.X Solution x.x.lor=\"red\">please rate - thanks //list of employeeType stored
ID: 3619312 • Letter: X
Question
x.XExplanation / Answer
x.x.lor="red">please rate - thanks //list of employeeType stored in an array // week 7 - Lab 7 - summer 2010 /*ANSWER TO TASK 1 ================== =================== */ #include #include #include #include using namespace std; struct employeeType { int id; string first; string last; char gender; double payrate; int dependents; }; const int MAX_EMPLOYEES = 50; void getData(ifstream& inFile, employeeType list[], int& listSize); void printList(const employeeType list[], int listSize) ; void printOne ( employeeType one); employeeType getOne ( ifstream& dataIn ); employeeType newemployee(); void selectionsort(employeeType[], int); void cutBacks(employeeType[], int); void hireOne(employeeType[],int&); int main () { employeeType him,her; employeeType list [MAX_EMPLOYEES ] ; int number ; // number of employees in the file int i; ifstream dataFile; dataFile.open ( "Employees.txt"); if (!dataFile) { coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.