See below.
Here, is the complete program suitable for running. The data in the array has been simplified to make testing easier. Study how the code matches the flow chart.
With the testing data (in the above program), what values are computed for the three sums?