a. Draw a flowchart to find the maximum element in a one-dimensional array A(m).
b. Draw a flowchart to find the sum of even and odd elements of a one-dimensional array A(m).
Si = Σ a(i), if a(i) is odd
S = Σ a(i), if a(i) is even
Sz = S1 + S2
c. Based on the above flowcharts, write the corresponding Unix shell programs.
The program should provide the following operations:
1. Ask the user to input the elements of the array
2. Display the value of each element
3. Display the size of the array
4. Display the value of the maximum element (first program)
5. Calculate and then display the required sums (S1, S2, Sz in the second program)