Trying to do use if statement to subtract 35 from the totalNet. not sure if i am using it right. I apologize for the messiness. Feedback on how the set up would be appreciated.
A more serious issue. Lets assume you fix the line 34 and there are many dependents.
You code will do:
1 2 3
double foo; // uninitialized, undefined value
foo -= 35; // if you take of something, you still don't know what you have
foo = 42; // No matter what you had, the foo is now 42
I.e. your line 56 overwrites the value of totalNet.