I have
string[] ColorsArray = new string[12] { "Blue", "Red", "Green",
"Yellow", "Blue", "Green", "Blue", "Yellow", "Red", "Green",
"Red", "Yellow" };
float[] LengthArray = new float[12] { 1.3f, 1.4f, 5.6f, 1.5f,
3.5f, 5.4f, 1.2f, 6.5f, 4.4f, 4.1f, 3.3f, 4.9f };
I want to match them up so that each index equals the other. So ColorsArray[0] which is Blue, equals LengthArray[0], which is 1.3f
The color is a fish. So each color is a fish and each corresponding number is the length of that fish. I need to be able to take what the user gives me (Blue, Red, Green Yellow) and then find out what the Biggest Fish is.
The goal is to match them all up, and then be able to compare the values for each color. So there are 4 colors and 3 duplicates, for a total of 12 "fish".
Apparently a For Loop can be used, but I am not sure how.