Thank you!! I changed the int to double and it worked. I knew it was a simple mistake! I've just been staring at the assignments for too long and need a break!
Type: Posts; User: Wtfisjava
Thank you!! I changed the int to double and it worked. I knew it was a simple mistake! I've just been staring at the assignments for too long and need a break!
My Total Profits should be $7.0200000000000005
My output:
run:
Enter liters of milk processed:
100
You entered 100 liters.
You require 26 cartons.
Total Cost: $38.0
Total Profits: $7.0...
Okay, I'm a total noob at java and am writing a simple program for a class. The program works,
but not as I want it to. I really need it to display the total decimals for the totalProfit and...