subject

Rearrange the blocks below to form an algorithm to sort the contents of the colors array. This array has already been declared and will hold 9 values. Assume all variables have been declared and that Flag has been initialized to 0. You will have multiple attempts to complete this problem.
Drag from here
-Flag = 0
-End While
-Flag = 1
-If colors[index] < colors[index + 1] then
-Until Flag == 1
-colors[index + 1] = swap
-If colors[index] < colors[index - 1] then
-For index = 0 to 8, step 1
-End if
-For index = 0 to 7, step 1
-End For
-colors[index] = colors[index + 1]
-swap = colors[index]
-While Flag == 0Construct your solution here

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 13:00
The documents a system at the end of the design phase, identifies any changes since the beginning of the project, and includes testing and verification of all system requirements and features. functional baseline operational baseline allocated baseline product baseline
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Write the html code to make a link out of the text “all about puppies”. it should link to a pdf called “puppies.pdf” inside the “documents” folder. the pdf should open in a new window.
Answers: 2
question
Computers and Technology, 23.06.2019 07:30
Write a program that inserts the digits of an integer into an array in originalorderfollowed by reverse order. first, promptthe user to enter a positive integer(> 0). determine the number of digits of the integer. create a dynamically allocated integer arrayof a size twice the number of digits.now insert the digits in original order which will occupy half of the array. then, insert the digits in reverse order.finally, output thedigits in thearray.use at least two functions to organize your program.
Answers: 3
question
Computers and Technology, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
You know the right answer?
Rearrange the blocks below to form an algorithm to sort the contents of the colors array. This arra...
Questions
question
Social Studies, 16.10.2020 17:01
question
Mathematics, 16.10.2020 17:01
question
Mathematics, 16.10.2020 17:01
question
Mathematics, 16.10.2020 17:01
Questions on the website: 13722363