Hello davis220!
You have not initialized tax, you have declared it double tax;
You should just give it an initial value (0 is very common for a double).