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)

 1) Write a program: a) declare int A[array_size] where array_ size

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 ALI 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!