C++ program
1. Write a program that asks the user to type 10 integers of an array and an integer V. The program must search if V is in the array of 10 integers. The program writes “V is in the array” or “V is not in the array”.
2. Answer each of the sort question:
a) Given an array A with a maximum size of 20, which can store integer data, declare the array:
b) Given the following:
char S[10] = {‘a’, ‘e’, ‘i’, ‘o’, ‘u’};
Write a c++ statement to display the 3rd element, and the 4th element.
c) Initialize an array numbers to the following values: 12.2, 3.4, -8.6, 3.9, 4.8
d) Given an array X with 8 elements, write statements to read values of X from user (input statement to read all the 8 elements)
e) Given an array of integer numbers (name of the array is Z). Write a loop that can be used to add the alternate numbers starting from the first number. Assume there are a total of N numbers in the array, where N is a user input.
3. Write a C++ function called Range that returns the difference between the largest and smallest elements in an array. Call this function from main, by supplying the input data (array itself).
4. Write a C++ function called negSum that returns the sum of all negative elements in an array of integers. Call this function from main with suitable data and display the sum.
5. Write a program which prints the letters in a char array in reverse order. For example, if the array contains {‘c’, ‘s’, ‘c’, ‘2’, ‘6’, ‘1’}the output (to the terminal) should be “162csc”.
PLACE THIS ORDER OR A SIMILAR ORDER WITH US TODAY AND GET A GOOD DISCOUNT