Search:

Type: Posts; User: darren102

Search: Search took 0.14 seconds.

  1. Replies
    8
    Views
    970

    Re: Trouble with Arrays

    ok. one sec.
  2. Replies
    8
    Views
    970

    Re: Trouble with Arrays

    Yes, the code works in post#1. Yes, it did find the max value in one array. I guess if it can, I do not know how.
  3. Replies
    8
    Views
    970

    Re: Trouble with Arrays

    for (int i = 0; i < cashDonations.length; i ++)
    {
    if (siteName[i] == cashDonations[i])

    }
  4. Replies
    8
    Views
    970

    Re: Trouble with Arrays

    I guess I do not understand how to do that. All of the code I try to do what you said gives me an error due to one being a string (siteName) and the other being a double (maxCash).
  5. Replies
    8
    Views
    970

    Trouble with Arrays

    I am trying to complete a program which takes in user input for 6 locations along with donation amounts for each. I then need to print out the site location with the largest cash donation. I figured...
Results 1 to 5 of 5