The code compiles properly and runs, but the result is not what you
expected. The output is
The value of c is 3.0
You expected the value of c to be 3.2. Explain what the problem is and
how to fix it.

So the problem is the left over value. In the chapter I read it spoke about using % to bring out the remainder. But all the options I could think of wouldn't work.
This is what I wrote with some modification on the original script

Java Code:

int
a = 32, b = 10;
double c = (double)a/b;
c%=c;
//tried to float c but that gives the same answer. The issue I believe is a rounding
// I know % would be right trick to pull the extra digits.
System.out.println("The value of c is " + c);
System.exit(0);