This is a class that I made to test my if-else statement for calculating withholding tax for gross pay. The error I get is this:
error: variable tax might not have been initialized...
Type: Posts; User: davis220
This is a class that I made to test my if-else statement for calculating withholding tax for gross pay. The error I get is this:
error: variable tax might not have been initialized...
Here is the half code / half psuedocode of what I need to make.
I figured that I should use logical operators, but I couldn't find a way to make it work.
double gross;
double taxPercent;
...