Write a program that will ask the use to enter 10 signed integervalues. The func
ID: 3614363 • Letter: W
Question
Write a program that will ask the use to enter 10 signed integervalues. The function main will then call a maximum value functionthat will accept its data arguments the integer array and the sizeof the array. The maximum function will the n search the array andprint out the entire array and the indices, the largest valueelement and the index number of the element. The program will wthen return to function and prompt the user on whether to exit orto perform another array and maximum search value.
Specifications
1. the array should be int and adimension of 10
2. array name iValue
3. The program should continue thedata entry process until 10 integers have been entered.
4. The program then should callthe function to display the array and find the largest element.
a. The function name will beFindMaxElement;
b. The function have callingargument of type int [ ] and in.
c. The function return typevoid.
d. The function should printall the entered values and indices of the entered array
e. The fn will also print out thelargest valued element and index of the entered array
f. Once completed the fn shallreturn program operation to fn main.
5. The program then prompt the user to enter‘y’ to perform another operation or ‘q’ toexit.
Sample output:
Enter integer array element 0: 77
Enter integer array element 1: 99
.
.
.Function FindMaxElement() called
iValue[0] = 77
iValue[2]= 99
maximum array element :
iValue[2] = 99
press y to enter search array or Q to quit theprogram.
Explanation / Answer
please rate - thanks #include using namespace std; void FindMaxElement(int[],int) ; int main() {int i,iValue[10],n=10; char quit='y'; while(quit=='y') { for(i=0;iRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.