00:01
This question consists of two parts.
00:02
First part is the prompt the user to input 5 floating point values and second part is to user input a number between 2 and 20 that indicate the number of floating point values they will enter.
00:17
Now coming to the first part, we have to write a coding for a question number part first.
00:24
It is in assembly language.
00:28
Data array float 0 .0 that written on 5 times.
00:34
Array size word 5 at number of elements in the array.
00:39
Prompt part 1.
00:40
Ascii's enter a floating point values.
00:48
.text global main in the main in a part 1 prompt and enter 5 floating point values.
00:58
So li $t00 counter for loop la $t1 array load array address into $t1.
01:08
Now input loop part 1 beg $t0 $t2 sort and display part 1 that will exit loop when counter array.
01:19
Now following after the display prompt.
01:31
We have to read store the float in array as w1 $t1 add $t0 $t01 add $t1 $t14 j input loop part 1 sort and display part that will sort the array.
01:56
And add calculate and exit the program final li $v0 10 now coming to the part 2.
02:07
Now code of the part 2 is data array part 2 float 0 .0 that written in many times almost 20 times prompt part 2...