![]() |
| ||
| AHHHH!! i cant figure this out. i cant figure this out, here is what im suppose to do Create a text file containing the pertinent information for the following table(not the identification row): Employee No. Department Pay Rate Exempt Hours Worked Write a C++ program to read the employee file as parallel arrays of employee data using arrays of int, doubles and chars.. Assume that the number of employee records you have to deal with is 4 and create a payroll output file with headers as shown in the following list. The output file is to contain the following data: a. Employee number (left justified) b. Department c. Pay Rate d. Exempt e. Hours Worked f. Base pay (pay rate * hours worked) g. Overtime pay h. Total pay Overtime pay is calculated only for nonexempt employees. An employee is exempt if ‘Y’ appears in the exempt column. Overtime is paid at time-and-a-half for all hours worked over 40. If an exempt employee works over 40 hours, that employee is only paid for 40 hours of work. MY CODE: #include <iostream><< moderator edit: added [code][/code] tags >> that is what i have but i cant get it to work out. i know size has to go in there somewhere but i keep gettin errors in the math (which i know is wrong) saying that "left operand '*' is double and can not conver to double[]" can some one help me out im ready to scream. |
| ||
| Re: AHHHH!! i cant figure this out. Employee No. Department Pay Rate Exempt Hours Worked 101 | 41 | 8.11 | Y | 49 722 | 32 | 7.22 | N | 40 1273 | 23 | 5.43 | Y | 39 2584 | 14 | 6.74 | N | 45 hopefully the you can understand the table a little better this way the "|" divides the sections just incase u were wondering. |
| ||
| Re: AHHHH!! i cant figure this out. im also getting these error right after its starts linking Lab10.obj : error LNK2001: unresolved external symbol "int __cdecl displayInfo(int,int,double,char,int,double,double,double)" (?displayInfo@@YAHHHNDHNNN@Z) Lab10.obj : error LNK2001: unresolved external symbol "int __cdecl calculatepay(double,double,double,double,int)" (?calculatepay@@YAHNNNNH@Z) Lab10.obj : error LNK2001: unresolved external symbol "int __cdecl getInfo(int,int,double,char,int)" (?getInfo@@YAHHHNDH@Z) Debug/Lab10.exe : fatal error LNK1120: 3 unresolved externals Error executing link.exe. |
| ||
| Re: AHHHH!! i cant figure this out. Make the function definitions match the prototypes or vice versa. |
| All times are GMT -4. The time now is 8:53 am. |
Forum system based on vBulletin Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
©2003 - 2010 DaniWeb® LLC