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 02:00
Which of the following is not a source of sustainable raw materials? a) coal mine b) flick of sheep c) cotton plantation d) line forest.
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
1. which of these is not true about torsion bars? a. they can be used to adjust ride height b. they can be adjusted anytime since they don't affect alignment angles c. they attach between the frame and the lower control arm d. they twist to produce a spring effect
Answers: 1
question
Computers and Technology, 24.06.2019 10:20
Multiple choice project create a program with two multiple choice questions. 1. users have two attempts only, show attempt number each time. hint: while loop with break control. (20%) 2. only one correct answer for each question, use switch case for each question. (20%) 3. show total score after the two questions are answered. hint: . (20%) 4. user have options to answer the two questions again if first attempt score is not 100%. hint: if statment. (20%) 5. use string method .toupper() to allow users to enter with lowercase or uppercase letters. (20%) 1. where is the capital of the state of florida? a. orlando b. tallahassee c. miami d. tampa b 2. where is walt disney world park located in florida? a. orlando b. tallahassee c. miami d. tampa a
Answers: 1
You know the right answer?
Activity - SortingFor this activity, your program will create two integer array objects with 10 unso...
Questions
question
English, 25.02.2021 21:30
question
English, 25.02.2021 21:30
question
Mathematics, 25.02.2021 21:30
question
Mathematics, 25.02.2021 21:30