subject

To do this you may follow this guideline: 1. Ask users how many numbers he/she wants to sort. The numbers are integer 2. Take that many numbers as inputs from the user and put them in an array 3. Then sort those numbers using the Bubble sort algorithm. Write a Bubble_sort function to do this. Pass the array to that function. (Note that you should copy your original array to another array before calling this function as the function will change your original array, but you need your original array for other sorting function) 3.1. In that function your output should show all the steps that the sorting algorithm is performing in each iteration 4. Repeat the sorting using the Selection sort algorithm. Write a Selection_sort function to do this. Pass the array to that function. 4.1. In that function your output should show all the steps that the sorting algorithm is performing in each iteration 5. You should write a display_array function that takes an array and print the elements. Use this function whenever you need to print the array.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:00
An excel which cell contains =b2 is copied to row below, the same column. what will be the new cell's content
Answers: 2
question
Computers and Technology, 22.06.2019 05:30
Agood flowchart alludes to both the inputs and outputs you will need to receive and give to the user. true or false?
Answers: 3
question
Computers and Technology, 22.06.2019 13:00
Write a program which asks you to enter a name in the form of first middle initial last. so you might enter for example samuel p. clemens. use getline to read in the string because it contains spaces. also, apparently the shift key on your keyboard doesn’t work, because you enter it all lower case. pass the string to a function which uses .find to locate the letters which need to be upper case and use toupper to convert those characters to uppercase. the revised string should then be returned to main in the form last, first mi where it will be displayed.
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
How can you repin an image on your pinterest pin board a. click on the "repin" button b. click on the "add pin" button c. click on the "upload a pin" button d. click on the "save pin" button.
Answers: 2
You know the right answer?
To do this you may follow this guideline: 1. Ask users how many numbers he/she wants to sort. The nu...
Questions
question
Social Studies, 03.12.2021 21:50