Question: a. Draw a flowchart to find the maximum element in one-dimensional array A(m). b. Draw a flowchart to find the sum of even and odd

a. Draw a flowchart to find the maximum element in one-dimensional array A(m). b. Draw a flowchart to find the sum of even and odd elements of one-dimensional array A(m). S_1 = sigma^m _ i = 0 a (i), if a(i) odd S_2 = sigma^m _ i = 0 a (i), if a (i) even S_3 = S_1 + S _2 c. Based on the above flowcharts, write the corresponding Unix shell programs The program should provide the following operations Ask the user to input the elements of the array Display the value of each element Display the size of the array Display the value of the maximum element (first program) Calculate and then display the required sums (S_1, S_2, S_3 in the second program)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
