This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
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.
Barry Gaunt
Ranch Hand
Joined: Aug 03, 2002
Posts: 7729
posted
0
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
Thomas Paul
mister krabs
Ranch Hand
Joined: May 05, 2000
Posts: 13974
posted
0
And you are re-initializing your counter to ' ' everytime you start the "I" case. Try getting rid of the counter=' ' from the start of the case.
Ryan Newcombe
Greenhorn
Joined: Oct 02, 2002
Posts: 24
posted
0
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?
Thomas Paul
mister krabs
Ranch Hand
Joined: May 05, 2000
Posts: 13974
posted
0
It looks like you aren't adding anything to them.
Barry Gaunt
Ranch Hand
Joined: Aug 03, 2002
Posts: 7729
posted
0
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 ]
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: I know its Friday night, hope somebody's here!