Question
In visual studio community C++ read carefully Sorting Orders: Write a program that uses two identical arrays of just eight integers. It should display the
In visual studio community C++ read carefully
Sorting Orders: Write a program that uses two identical arrays of just eight integers. It should display the contents of the first array, then call a function to sort the array using an ascending order bubble sort modified to print out the array contents after each pass of the sort. Next, the program should display the contents of the second array, then call a function to sort the array using an ascending order selection sort modified to print out the array contents after each pass of the sort.
Part 1: Please create the pseudo code and then code, debug and create the requisite submission files for programming Sorting Orders. You can initialize the arrays in main when you declare them. You can pick the 8 numbers. You must use functions in this program - declare and initialize the arrays in main and then pass them to the two different sort functions and to the display function. No functions, no points. This exercise is designed to show you (visually) the difference between the two sorts.
*****Part 2: (A written description) that describes to me HOW?? the sorts are working. I want you to put it into written words - you can reference the results in your program. Your description should be at least 8 sentences long. ("On the first pass through, the following numbers were swapped because.....")***** importatnt part !!!
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