2 #include "../jpoffice_agent_header.h"
3 #include "../library_header.h"
17 int firm_id, household_id;
18 double current_wage, wage_offer;
39 add_employee(&applicant_list, household_id, current_wage);
54 if (applicant_list.
size == 0 ) {
break; }
56 if (vacancy_list.
size == 0 ) {
break; }
58 if (i == applicant_list.
size) {
break;}
60 if (j == vacancy_list.
size) {
break; }
64 household_id = applicant_list.
array[i].
id;
65 firm_id = vacancy_list.
array[j].
id;
81 printf(
"Stage 1 Employment Summary: Applicants: %d, Vacancy: %d, Placement: %d \n", applicant_list.
size, vacancy_list.
size, j);
106 int firm_id, household_id;
124 add_int(&applicant_list, household_id);
136 if (applicant_list.
size == 0 ) {
break;}
137 if (vacancy_list.
size == 0 ) {
break;}
138 if (i == applicant_list.
size) {
break;}
139 if (j == vacancy_list.
size) {
break;}
142 household_id = applicant_list.
array[i];
143 firm_id = vacancy_list.
array[j].
id;
152 printf(
"Stage 2 Employment Summary: Applicants: %d, Vacancy: %d, Placement: %d \n", applicant_list.
size, vacancy_list.
size, j);