Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Discussion > The Lounge > Help

Reply
 
 
darine darine is offline
Junior Member
Join Date: Jun 2006
Posts: 2
 
      07-02-2006
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);
}






}
}
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Help Help Pentax S5i Help needed (Please) The Martian Digital Photography 14 06-20-2008 07:56 AM
HELP - HELP - HELP =?Utf-8?B?S2ltb24gSWZhbnRpZGlz?= ASP .Net 4 03-09-2006 12:46 PM
HELP WANTED HELP WANTED HELP WANTED Harvey ASP .Net 1 07-16-2004 01:12 PM
HELP WANTED HELP WANTED HELP WANTED Harvey ASP .Net 0 07-16-2004 10:00 AM
HELP! HELP! HELP! Opening Web Application Project Error =?Utf-8?B?dHJlbGxvdzQyMg==?= ASP .Net 0 02-20-2004 05:16 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57