Home / Expert Answers / Computer Science / assembly-language-programming-write-a-shell-sort-that-finds-the-sum-and-computes-the-average-get-s-pa963

(Solved): Assembly language programming, write a shell sort that finds the sum and computes the average, get/s ...



Assembly language programming, write a shell sort that finds the sum and computes the average, get/save min and max, then finds the median.
Here is a provided algorithm that we must use 
h = 1;
while ( (h*3+1) < length ) {
        h = 3 * h + 1;
}
while ( h>0 ) {
    for (i = h-1; i < length; i++) {
       tmp = lst[i];
           j = i;
          for ( j=i; (j >= h) && (lst[j-h] >
                                           tmp); j = j-h) {
            lst[j] = lst[j-h];
}
         lst[j] = tmp;
}
      h = h / 3;
}

 

Below is the data provided.

section . data
; Define constants.
\( \begin{array}{lll}\text { TRUE } & \text { equ } & 1 \\ \text { FALSE } & \text { equ }

Essentially I want to calculate this information and provide what I stated above. Do not worry about the printing part. the min, med, max, sum, avg are all at 0.
I have 
hdrMin
hdrMed

hdrMax

hdrSum

hdrAve 

tempString

for provided strings.

section . data ; Define constants. \( \begin{array}{lll}\text { TRUE } & \text { equ } & 1 \\ \text { FALSE } & \text { equ } & 0\end{array} \) SYS_read SYS_write SYS_open SYS_close SYS_fork SYS_exit SYS_creat SYS_time LF NULL ESC ; __.. Provided data len dd 200


We have an Answer from Expert

View Expert Answer

Expert Answer


Assembly programming language: In computer science, the assembly programming language is a low-level language. The assembly language is machine unders
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe