posted 12 years ago
Thank you for the reply Greg
I was surprised that the program ran at all for you considering it didnt work for me.
I've been working on this all day, and although it isnt perfect I think its pretty good so far.
Its pretty messy, and I used the for loops because I didn't know how to insert those *. Thinking back now, I should have just used left/right justifications with printf, but I am not too familiar.
The problem I am encountering now is that when I input a last name with a possible suffix (i.e., Oconnor the 3rd, or, davis III) the program jumps/prints 3 lines, and goes to the unionType prompt.
Employee first Name: John
Employee last name: David the Third
Employee social security numer: The character 'c' for city office or 's' for suburban office: The character 'u' for union or 'n' for non union member:
Is this occurring because of my first printf statement, the fact that its correlating my input space/white space with (%s %s %s)?
Thank you
Jihwan Kim