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, 24.06.2019 14:30
Two students are discussing electricity that has a frequency of 60 hz. student a says that this type of electricity is referred to as ac. student b says that in this type of electricity, the electrons flow in only one direction. which of the following statements is correct? a. only student a is correct b. only student b is correct c. both of the two students are correct d. neither of the two students is correct
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
Need getting google account back, big issue
Answers: 2
question
Computers and Technology, 25.06.2019 08:10
Which of the following is a difference between the systems development life cycle (sdlc) and extreme programming (xp)? the sdlc model has a separate planning and analysis phase, whereas xp combines both the phases into one phase.in the sdlc model, changes cannot be made to a system once it is delivered to the user, whereas the xp method delivers the system to the users and then make changes suggested by the user.the sdlc model develops an entire system at once, whereas xp uses incremental steps to improve an information system's qualitydevelopers following the sdlc model cannot go on to the next phase until the current phase is finished, whereas in xp, developers can move to any phase from the current phase.
Answers: 1
question
Computers and Technology, 25.06.2019 08:50
The purpose of this problem is to write some small functions and practice passing things around amoung functions.1) the main function shall ask the user to enter three numbers and read the three numbers.2) write a function named findsum that takes three numbers as arguments and returns their sum. the main function shall call this function.3) write a function named findaverage that takes the sum and the number of numbers and returns the average. the main function shall call this function.4) write a function named findsmallest that takes the three numbers and returns the smallest value. the main function shall call this function.5) the main function shall print the results in the following format, with two decimal positions and the decimal points aligned:
Answers: 3
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
Mathematics, 04.11.2020 08:10
question
English, 04.11.2020 08:10
question
Mathematics, 04.11.2020 08:10
question
Mathematics, 04.11.2020 08:10
question
Biology, 04.11.2020 08:10
question
Chemistry, 04.11.2020 08:10
question
History, 04.11.2020 08:10
question
Mathematics, 04.11.2020 08:10
Questions on the website: 13722361