arraysingle dimension
[SET – 1]
1 
Write a C++ program to find the sum and average of one dimensional integer array. solution 
2 
Write a C++ program to swap first and last element of an integer 1d array. solution 
3 
Write a C++ program to reverse the element of an integer 1D array. solution 
4 
Write a C++ program to find the largest and smallest element of an array. solution 
5 
Write a menu driven C++ program with following option

6 
P is onedimensional array of integers. Write a C++ function to efficiently search for a data VAL from P. If VAL is present in the array then the function should return value 1 and 0 otherwise. solution 
7 
Suppose a onedimensional array AR containing integers is arranged in ascending order. Write a userdefined function in C++ to search for an integer from AR with the help of Binary search method, returning an integer 0 to show absence of the number and integer 1 to show presence of the number in the array. Function should have three parameters : (i) array AR (ii) the number to be searched and (iii) the number of elements N in the array. solution 
8 
Suppose A, B, C are arrays of integers of size M, N, and M + N respectively. The numbers in array A appear in ascending order while the numbers in array B appear in descending order. Write a user defined function in C++ to produce third array C by merging arrays A and B in ascending order. Use A, B and C as arguments in the function. solution 
9 
Suppose X. Y, Z are arrays of integers of size M, N, and M + N respectively. The numbers in array X and Y appear in descending order. Write a userdefined function in C++ to produce third array Z by merging arrays X and Y in descending order. solution 
10 
Given two arrays of integers A and B of sizes M and N respectively. Write a function named MIX () with four arguments, which will produce a third array named C. such that the following sequence is followed.
