Question: Objective: For this assignment, write a program that reads a group of numbers from the user in unsorted order and places them in an array

Objective:
For this assignment, write a program that reads a group of numbers from the user in unsorted
order and places them in an array of type int. Once the numbers are stored in the array, the
program should average them and print the result by defining a function avg() and also sort the
contents of the array and print them by defining bubblesort(). Use pointer notation and call by
reference mandatory.
Output:
How many numbers you want to insert? 5
Enter array elements: 51324
Average value: 3
After sorting:12345

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!