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;

...