1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
//this function exerpt is named 'readdata()'
if (files.is_open()) {
outputheader(files, outfile);
do {
files >> lastname >> marital >> children >> income >> pension;
errordataM = errordata_m(files, marital, errordataM);
errordataP = errordata_p(files, errordataP, pension);
exemptions = exemptionfunc(files, marital, children, exemptions);
taxincome = taxincomefunc(files, income, pension, deductions, taxincome, exemptions);
taxowed = taxowedfunc(files, taxincome, taxowed);
}
outputdata(files, outfile, errorfile, filename, lastname, errormessageM, errormessageP, marital, children,
errordataM, errordataP, income, pension, deductions, taxincome, taxowed, exemptions);
} while (files);
}
|