We are supposed to "expand" a payroll program to utilize arrays. looking at the examples in our textbook, it appears that we actually have to reprogram (drastically change) the payroll program every two chapters. It is an online class with little professor-student interaction and the textbook is sometimes lacking.
The instructions are:
Display company title and a header that labels the output in a tabular form. Input the first name and last name of an employee.
I am assuming that he wants us to input simply the first name and last name to get data in tabular form.
Right now, I am experimenting with this file while I try to figure out what he wants, but I get an error: line 16; expected primary-expression before ')' token
I lost week because of the holiday but I am trying to catch up! Here is the code:
while(cin>>fname[counter]>>lname[counter]>>status[counter]>>id[counter]>>hw[counter]>>hr[counter]>>oth[counter]>>) ///** what is the last >> intended to do, check it out*// you also missed a loop brace '{'
Yeah that's it, however if you are allowed to use classes they would make your work easier
Thanks, I missed that; was very tired. This assignment is stressing me out. Classes start in the next module I believe. The above code is an example from the textbook with some modifications. I am assuming that the expanded program has to be a modified version of my last assignment which contained this code:
With the instruction for this assignment, I think he only wants us to input the first name and last name of an employee which will out put the following values:
First Name, Last Name, Status, SSN, HW, HR, OTH, OTP, REGP, GROSS, TAX, NET all in tabular form. I am lost as how to get started.