jbennet
Moderator
18,528 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 609
Skill Endorsements: 28
@jbennet
Shouldn't this be moved in the java forum?
@MichaelCJ10
while (counter<total.length)
{
counter++;
...
When you start your while loop you immediately started with an increment to the counter which caused it to use the next element instead of starting with wages[0]
Next
final int TOTAL_LENGTH=11; //declare constant
The array has only 10 elements
zeroliken
Nearly a Posting Virtuoso
1,346 posts since Nov 2011
Reputation Points: 214
Solved Threads: 205
Skill Endorsements: 13
my last problem seems to be getting my whole program to work with doubles rather than ints,
Initialize the variables as a double then match the arguments at the printf() statments
while my counter remains an int
if your talking about the variable counter then there's not really a need to make it a double
zeroliken
Nearly a Posting Virtuoso
1,346 posts since Nov 2011
Reputation Points: 214
Solved Threads: 205
Skill Endorsements: 13
Question Answered as of 1 Year Ago by
skilly,
zeroliken
and
jbennet