Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I keep getting the error of passing a int variable through the employee struct. We also need to do a insertion sort with the same

I keep getting the error of passing a int variable through the employee struct.

image text in transcribed

We also need to do a insertion sort with the same structure.

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

| 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 void selectionSort (Employee *emps, int n) { for (int i=0; i largest) { Employee temp= emps [j]. emps [j].salary=largest; largest=temp; TILPP 2IN12. PP using namespace std; 600 void BubbleSort (int all, int); void printArray (int arr[], int); 1 struct Employee string role; string first; string last; int salary: string social Security: char employee_code; string department; main () { int i=0; ifstream dataIn; const int SIZE=1000; //read the file into the array// dataIn.open("employee.txt"); N N N N N mm mm mm mmm 01 ONWT if (dataIn. fail()) cout>emps [i].employee_code>>emps[i].socialsecurity>>emps[i].first>>emps [i].last; dataIn>>emps[i].department>>emps[i].role>>emps[i].salary: i++; dataIn.close(); //Display employees// for (int j=0; j 0) O W N int k = 0; for(int i=0; i<-l>

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions

Question

1. Discuss the four components of language.

Answered: 1 week ago

Question

f. What stereotypes were reinforced in the commercials?

Answered: 1 week ago