ok. one sec.
Type: Posts; User: darren102
ok. one sec.
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.
for (int i = 0; i < cashDonations.length; i ++)
{
if (siteName[i] == cashDonations[i])
}
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).
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...