subject
Computers and Technology, 12.03.2021 15:20 jfw0504

Activity - SortingFor this activity, your program will create two integer array objects with 10 unsorted numbers each, sort the numbers in the arrays using the bubble and selection sorts, and then display the sorted arrays. 1. Make sure to include for creating array objects

2. Create constants as needed

3. Create function prototypes and function definitions to:

a. sort an array object in ascending order (from lowest to highest) using the bubble sort

b. sort an array object in ascending order (from lowest to highest) using the selection sort

c. swap the elements in the array objects (Called from the sort functions)

4. In main, create two integer array objects, numList1 and numList2, each with the same unsorted values listed below:

98, 78, 102, 67, 45, 83, 29, 184, 2, 685.

Display the unsorted values in the numList1 array object to the screen.

6. Pass the numList1 array object to your bubble sort function for sorting

7. After being sorted, display the sorted values in the numList1 array object to the screen

8. Display the unsorted values in the numList2 array object to the screen.

9. Pass the numList2 array object to your selection sort function for sorting

10. After being sorted, display the sorted values in the numList2 array object to the screen

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
Consider how gaming consoles initially relied on joysticks and joypads and then made the switch to modern gaming controls, which include analog sticks, buttons and switches, touch controls, accelerometers, motion controls, etc. name at least two kinds of gaming experiences that are possible with these new control devices but were not possible on original joysticks. explain how new technologies made this newer game style possible.
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
Your company has 1,500 desktop computers running windows 7. you want to upgrade them to windows 10. which type of microsoft license would be best suited in this situation?
Answers: 3
question
Computers and Technology, 22.06.2019 19:10
10. when you create a pivottable, you need to specify where to find the data for the pivottable. is it true
Answers: 2
question
Computers and Technology, 22.06.2019 21:40
Develop a function to create a document in the mongodb database “city” in the collection “inspections.” be sure it can handle error conditions gracefully. a. input -> argument to function will be set of key/value pairs in the data type acceptable to the mongodb driver insert api call b. return -> true if successful insert else false (require a screenshot)
Answers: 2
You know the right answer?
Activity - SortingFor this activity, your program will create two integer array objects with 10 unso...
Questions
question
Mathematics, 11.09.2021 04:50
question
Mathematics, 11.09.2021 04:50
Questions on the website: 13722360