Threw 2 "break;" statements in there and she works like a charm!Thanks for the help helloworld922!I learned a lot about initialization and precision thanks to your help.
Type: Posts; User: haloboy
Threw 2 "break;" statements in there and she works like a charm!Thanks for the help helloworld922!I learned a lot about initialization and precision thanks to your help.
I have initialized the variables and the program is almost complete!However my answer results in an infinite loop and I dont know why.The answer is correct but no matter where I put the output it is...
Thanks for the reply,the error is now gone.I forgot about floating point.I used the example you gave and type-casted gross from a double to an int.However I have 3 errors in the program saying...
Ok I know the problem is in the gross section but I dont know why that plus sign is giving me an issue here is the code:
import java.util.Scanner;
public class Lab2
{
public static void...