------------------------------------
Your GUI will have the following inputs. There will be an input textbox for each one.
1. The variable A
2. A color which shall be a String
It will also have a Do It! button. When the user clicks the button, your program will update the following output text boxes:
1. the sum of A values for which the color was "red"
2. the sum of the A values for which the color is "blue"
3. the sum of the A values for which the color is "green"
If the inputs for sets A, B, C are:
32 Red
17 blue
22 green
24 blue
23 red
the output would be
red Sum 55 blue sum 41 green sum 22
Can anyone share the code on how to construct this?