Question: 1) Write a program a) declare int A[array_size] where array_size is an const int and initialized with 3 hint: const int array_size 3; b) write
1) Write a program a) declare int A[array_size] where array_size is an const int and initialized with 3 hint: const int array_size 3; b) write a function that takes as input an array of integers and an integer that specifics how many entries are in the array Hint: void fill_array (int x[], int size) and call the function to initialize AL with 23, 21, 67 using cin //passing by reference c) call sort(A, A + array_size) to sort A in ascending order Hint: add #include-algorithm> on the top of the program //passing by reference d) display the minimum and maximum values of All on the screen Hint: using cout d) write a function that takes as input an int variable and increases the input variable by 5, and call the function to increase the maximum value of All by 5 Hint: void incre(int y) l increase y by 5) //passing by value e) display the maximum value of AL on the screen after the execution of incre0: f) using a for loop to display all integers in A on screen
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
