Search:

Type: Posts; User: ppme

Search: Search took 0.07 seconds.

  1. Re: Program to calculate pay and total sum with daily increment. Urgent!

    Your "amount" variable holds the amount paid on one particular day. So if you take this amount and minus 1 million form it.. the pay must be greater than 1 million if > 0 holds true.
  2. Re: Program to calculate pay and total sum with daily increment. Urgent!

    total - 1mil > 0
    {
    tell users earned more than 1 mil
    }
    amount - 1mil >0
    {
    tell users more than 1 mil a day
    }
  3. Re: Program to calculate pay and total sum with daily increment. Urgent!

    New variable, "total"

    total += amount;
  4. Re: Program to calculate pay and total sum with daily increment. Urgent!

    jTextArea1.append( day + " " + pay.format(amount) + "\n"); Outside and Inside the loop! :) Sorry should of been more clear
  5. Re: Program to calculate pay and total sum with daily increment. Urgent!

    Making "day" a global variable and putting this line : jTextArea1.append( day + " " + pay.format(amount) + "\n");
    Before the for loop should also fix the problem.

    Or an if...
Results 1 to 5 of 5