It is obvious that I am new to c++, AnyWay Im combining two projects into one. I have questions about Switch structures, and nesting them with an if/else structure.
My program should compute employess weekly pay. Mangers have payCode1, hourlyWorkers payCode2, comissionWorkers payCode3, and pieceWorkers have payCode4; Mangers have a fixed income for (hours<=40) and hours(<40) gets paid 1.5"time and a half".
ComissionWorker get paid 250.00+5.7% of gross weeklysales, and pieceWorkers get paid fixed amount of money per items produce. Now I already have my program outputting my pay based on hours and overtime hours. Im haveing problems using a switch structure to give me pay based on paycode.
Here is what I have so for, please help me in this peaceful journey;
double rate, pay;
printf("hours(-1 to end):");
pay= (40 * rate + ((hours - 40 * rate * 1.5)));
printf("gross pay is%f", grosspay);