You are on page 1of 1

1/

Write a program that has following functions to manage an integer array:

1. Enter an integer array that has N elements 


2. Print all elements to the screen
3. Sum values of the array
4. Calculate the average value of array elements
5. Find the index of an array element
6. Find the maximum value of the array
7. Find the minimum value of the array
8. Quit

2/

Write a program that has following functions:

1. Create a random integer array that has N elements


2. Print all elements to the screen
3. Sort the array in ascending order
4. Sort the array in descending order
5. Add a new element at the beginning of the array
6. Add a new element at the end of the array
7. Add a new element at specific position of the array
8. Quit

You might also like