Close, but not the same---still does not help with my problem. I'm sure we have the same class together but I don't know the person. A little help would be appreciated.
Why are you guys initializing your numeric constants to single chars? Try doing this instead: totalotPay = 0; totalRegPay = 0; totalGrossPay = 0; counter = 0;
By the way, I just wanted to add that you two guys are asking your questions in exactly the correct way. Show us that you are trying to do the work and we will be more than happy to give you a guiding hand.
That's why I referred you to over at the other question. He initialized to '0' and got 48 which is the value of the char '0'. You are getting 32 which is the code for ' ', a blank. -Barry
Thank You for your help guys. I did what you said and it worked for the transaction total but the regular pay, gross pay, and ot pay are not adding up. any suggestions?
The program ends in midair too. Or at least seems like it. I would be interested to see the assignment as defined by the instructor. Can you post it somehow? And I would like to see the instructor's solution when the assigment is over. [ October 05, 2002: Message edited by: Barry Gaunt ]