That part for the message dialog need not be altered. The code I gave you will reset the value so that when it is passed to showMessageDialog() it doesn't return a negative number.
Also
...
Type: Posts; User: javapenguin
That part for the message dialog need not be altered. The code I gave you will reset the value so that when it is passed to showMessageDialog() it doesn't return a negative number.
Also
...
if (packageLetter=='A' && hoursUsed>10)
{
additionalHours = hoursUsed - 10;
totalFee = 9.95 + (additionalHours * 2.00);
savingAB = totalFee - 13.95;...
double can hold negative values. You could have an inner if statement to tell it to set it to 0.00 or something if the totalFee is less than 19.95.
In fact, it'll do that every time your total...