Search:

Type: Posts; User: javapenguin

Search: Search took 0.08 seconds.

  1. Replies
    5
    Views
    5,066

    Re: Need If-Else if-Else help on my code

    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
    ...
  2. Replies
    5
    Views
    5,066

    Re: Need If-Else if-Else help on my code

    if (packageLetter=='A' && hoursUsed>10)
    {
    additionalHours = hoursUsed - 10;
    totalFee = 9.95 + (additionalHours * 2.00);
    savingAB = totalFee - 13.95;...
  3. Replies
    5
    Views
    5,066

    Re: Need If-Else if-Else help on my code

    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...
Results 1 to 3 of 3