Question: Array Write a program that: Enters 5 integers into array arr[] Prints all the 5 elements of arr [] Prints the sum of all the
Array Write a program that: Enters 5 integers into array arr[] Prints all the 5 elements of arr [] Prints the sum of all the elements Prints the maximum among the elements Refer to an example output: Your code must strictly have: Function calculate Sum that returns the sum of all the elements in arr [] Function findMax that returns the maximum element in arr [] Enter 5 integers: 11 11 11 11 13 Array elements: 11 11 11 11 13 Sum of the elements: 57 Maximum element: 13 J Attach your code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
