Question: IN C++ Write a program that uses an integer array of size 15 to do the following (your program should prompt the user to input

IN C++

Write a program that uses an integer array of size 15 to do the following (your program should prompt the user to input values into an array):

1. Define a function PrintArray to print the elements of the array. Use it whenever an array needs to be output in the program.

2. Your program should print the original array entered by the user. It should also print the array after every time the array is modified.

3. Define a function BubbleSort to sort an array that is passed to it in ascending order and use it to sort the original array.

4. Define a function Median that accepts an array and its size and returns the the median value of the array.

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!