Question: Please help me fix and modify so it works for both part 1 and part 2 for this code. And please add comments each lines

Please help me fix and modify so it works for both part 1and part 2for this code. And please add comments each lines (so i can understand better) part 1: Build an assembly function that will sort an array of integers. Bubble sort algorithm can be used. The function receives the array and the array size from a C/C++program.The array of integers should be created and populated with values inside the C/C++program.After sorting, the C/C++code should display the array in sorted order. The array could be loaded with random numbers. Part 2: Modify the assembly function from part I to allow sorting for either ascending or descending order. A third parameter should be passed into the function to represent the chosen sorted order (for example 0for ascending and 1for descending).The user should be prompted in the C/C++program about the sorting order.
 Please help me fix and modify so it works for both

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!