Sorry I misunderstood what you were asking. You should be able to leave them uninitialised (ie blank), but you can't use them until after they have been assigned. You will need to move the line double grossPay = hoursWorked * payRate;
and each of the tax calculation lines after the user input lines.
darkagn 315 Veteran Poster Featured Poster
darkagn 315 Veteran Poster Featured Poster
poojavb commented: thank you very much....worked well +4
darkagn 315 Veteran Poster Featured Poster
darkagn 315 Veteran Poster Featured Poster
darkagn 315 Veteran Poster Featured Poster
M.Waqas Aslam commented: awesome way to explain , simple and effective example. +5
ddanbe commented: Well said! +15