subject
Engineering, 31.10.2019 02:31 MOONCHILDSUGA

Write down a sort method to sort an array of string using bubble-sort algorithm. bubble sort algorithm makes several passes through the array. on each pass, successive neighboring pairs are compared. if a pair is not in order, its values are swapped; otherwise the value remains unchanged. the technique is called bubble sort or sinking sort because the smaller values gradually "bubble" their way to the top, and the larger values "sink" to the bottom. write a test program that reads in 10 string values and invokes the bubble sort method. display the sorted string array.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
If a particle moves along a path such that r : (3 sin t) m and ? : 2t rad, where t is in seconds. what is the particle's acceleration in m/s in 4 seconds? a)- 16.43 b)- 16.29 c)- 15.21 d)- 13.79
Answers: 1
question
Engineering, 04.07.2019 18:10
Afluid flows with a velocity field given by v=(x/t)i.. determine the local and convective accelerations when x=3 and t=1.
Answers: 2
question
Engineering, 04.07.2019 18:10
The drive force for diffusion is 7 fick's first law can be used to solve the non-steady state diffusion. a)-true b)-false
Answers: 1
question
Engineering, 04.07.2019 18:20
Asolid cylinder is concentric with a straight pipe. the cylinder is 0.5 m long and has an outside diameter of 8 cm. the pipe has an inside diameter of 8.5 cm. the annulus between the cylinder ad the pipe contains stationary oil. the oil has a specific gravity of 0.92 and a kinematic viscosity of 5.57 x 10-4 m2/s. most nearly, what is the force needed to move the cylinder along the pipe at a constant velocity of 1 m/s?
Answers: 3
You know the right answer?
Write down a sort method to sort an array of string using bubble-sort algorithm. bubble sort algorit...
Questions
question
Mathematics, 11.10.2020 02:01
Questions on the website: 13722363