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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started