Search:

Type: Posts; User: alex067

Search: Search took 0.10 seconds.

  1. Replies
    9
    Views
    1,528

    Re: Program not ending correctly

    So if I wanted tcode 3 to terminate the program, wouldn't my while statement be:

    }while (tcode > 0 || tcode < 3);

    this statement means, if tcode is greater than 0, and tcode is less than 3,...
  2. Replies
    9
    Views
    1,528

    Re: Program not ending correctly

    So if I wanted tcode 3 to terminate the program, wouldn't my while statement be:

    }while (tcode > 0 || tcode < 3);

    this statement means, if tcode is greater than 0, and tcode is less than 3,...
  3. Replies
    9
    Views
    1,528

    Re: Program not ending correctly

    Values of tcode that would end the loop would just be 3

    Values for tcode to stay in the loop would be 1,2

    So I would do, }while (tcode > 0 || tcode < 3) ? So for every tcode greater than 0 (to...
  4. Replies
    9
    Views
    1,528

    Re: Program not ending correctly

    So how should the while statement be constructed in order to make tcode = 3 to input the last of the transaction and end the program?
  5. Replies
    9
    Views
    1,528

    Program not ending correctly

    import javax.swing.JOptionPane;
    import java.text.DecimalFormat;
    public class Assignment1
    {



    public static CheckingAccount info;
Results 1 to 5 of 5