Page 2 of 2 FirstFirst 12
Results 21 to 22 of 22
  1. #21
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default

    #2 - Using two arrays, one with the salesman's id, the other with the amt of sales - search the array with the amts and save the index to the the largest amt. Then use that index to also get the salesman's id from the array holding that info.

  2. #22
    Sophiie is offline Member
    Join Date
    Nov 2008
    Posts
    14
    Rep Power
    0

    Default

    Err...can you can get me started on how to do that?

    Do I do something like:

    int[] sales = { id, sales} for each one? Do I use the variables instead of actually numbers since the numbers will be prompted for?

    Thanks for the help.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Help in Printing
    By kirly in forum Advanced Java
    Replies: 3
    Last Post: 10-03-2011, 03:40 PM
  2. Printing Example
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-11-2008, 04:41 PM
  3. The highest number
    By I-Shine in forum Java Applets
    Replies: 3
    Last Post: 02-13-2008, 05:05 AM
  4. [Java Printing]
    By remnahush in forum Advanced Java
    Replies: 1
    Last Post: 11-08-2007, 03:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •