Homework help with Java program
working on a Java program that tracks parts completed each month until either 10000 parts are reached or 24 months pass. The logic itself is working but the math output is coming out slightly off.
After three months my result is showing:
1191.0160000000003
But the expected result should be:
1191.0159999999998
The line I have inside the for loop is parts Num *= 1.06;
and I can't figure out what's missing or needs to be adjusted to match the correct output.
Let me know if I need to share more of the code.
thanks