Help

Discussion in 'The Lounge' started by darine, Jul 2, 2006.

  1. darine

    darine

    Joined:
    Jun 30, 2006
    Messages:
    2
    I am trying to create an array to get the commission of sales made by 15 people. Here is my start but I am getting crazy errors. What am I doing wrong?



    import java.util.Scanner;
    public class Commission
    {
    public static void main( String args[])
    {
    int pay;
    int total;
    int salesp[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
    int salespw[]={500,1000,350,625,5000,200,280,230,290,376,610,
    2000,350,100,150};
    {
    for(int counter= 0; counter < array.length; counter++)
    System.out.println(%5d%8d\n'Sales Person'%5d%8d\n'Sales Per Week',
    counter,array[counter]);

    pay = (.09 * salespw) + 200;
    System.out.printf( "Your earnings for this week: $%.2f\n\n", pay);
    }






    }
    }
    darine, Jul 2, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jacqueline

    help help help

    jacqueline, Jun 29, 2003, in forum: Computer Support
    Replies:
    16
    Views:
    856
    Slumpy
    Jun 30, 2003
  2. Cam

    HELP HELP HELP

    Cam, Aug 7, 2003, in forum: Computer Support
    Replies:
    3
    Views:
    423
    Brian H¹©
    Aug 7, 2003
  3. Tony Bowring
    Replies:
    8
    Views:
    528
    Patrick
    Nov 10, 2003
  4. Tony Bowring
    Replies:
    0
    Views:
    424
    Tony Bowring
    Nov 10, 2003
  5. The Martian

    Help Help Help Pentax S5i Help needed (Please)

    The Martian, Jun 4, 2008, in forum: Digital Photography
    Replies:
    14
    Views:
    1,497
    ASAAR
    Jun 20, 2008
Loading...

Share This Page