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, 23.06.2019 06:30
On early television stations, what typically filled the screen from around 11pm until 6am? test dummies test patterns tests testing colors
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
This chapter lists many ways in which becoming computer literate is beneficial. think about what your life will be like once you’re started in your career. what areas of computing will be most important for you to understand? how would an understanding of computer hardware and software you in working from home, working with groups in other countries and contributing your talents.
Answers: 1
question
Computers and Technology, 23.06.2019 18:40
How does is make you feel when you're kind to others? what are some opportunities in your life to be more kind to your friends and loved ones? imagine a world where kindness has be outlawed. how would people act differently? would your day-to-day life change significantly? why or why not?
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
You know the right answer?
Activity - SortingFor this activity, your program will create two integer array objects with 10 unso...
Questions
question
Computers and Technology, 09.01.2020 06:31
Questions on the website: 13722367