![]() |
|
#1
|
|||
|
|||
Payroll programso im writing this small program in C and im having trouble with it. here it is:
CPP / C++ / C Code:
so then i put the values for prompt..... and the outout is like that for example: employee 123 worked 46.0 hours at $6.50 per hour 1 weekly pay $318.50 dues $31.85 net pay $286.65 employee 433 worked 46.0 hours at $6.50 per hour 1 weekly pay $318.50 dues $31.85 net pay $286.65 employee 453 worked 46.0 hours at $6.50 per hour 0 weekly pay $318.50 dues $31.85 net pay $286.65 employee 574 worked 46.0 hours at $6.50 per hour 0 weekly pay $318.50 dues $31.85 net pay $286.65 ----- do u see where i put highlighted with bold text? in that place i want for value od status=0 to prin in that place NONMANAGER and for status=1 >> MANAGER so here is how i want it to be: employee 123 worked 46.0 hours at $6.50 per hour manager weekly pay $318.50 dues $31.85 net pay $286.65 employee 433 worked 46.0 hours at $6.50 per hour manager weekly pay $318.50 dues $31.85 net pay $286.65 ---- of course with different values for hours and rate.... anyone can help me? thanx in advance |
Recent GIDBlog
Welcome to Baghdad by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The