10 Likes
4.0 / 3.0 * Math.PI * Math.pow(r,3)
Answered By
3 Likes
A student incorrectly attempted to produce a random value in the range 1.6 using the expression.
6*(int)Math.random( ) + 1
Correct the error in expression above to get the desired result.