Write an assembly code that sorts a given 10-element array in ascending order For example:from A: .word 9,8,7,6,5,4,3,2,1,0 to A=0,1,2,3,4,5,6,7,8,9 [closed] - arrays

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 days ago.
This post was edited and submitted for review yesterday and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
Q: Write an assembly code that sorts a given 10-element array in ascending order.
For example:
from A: .word 9,8,7,6,5,4,3,2,1,0
to A=0,1,2,3,4,5,6,7,8,9
https://cpulator.01xz.net/?sys=mipsr5
MIPS32r5
this link I want all steps to answers my question please .

Related

How to make sparse array c language without condition I !=o? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 days ago.
Improve this question
How to make sparse array c language without condition i !=0 ??
I tried i!=0 condition but teacher doesn't want that
Teacher wants another path ??

my project has diffrent result every time [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I wrote this code in my project but every time i run it the answer is diffrent.
]1
Initialize sum with a value of 0. The reason it is different every time is you are calling sum which you never assigned a value. Anything could be in memory where sum is stored, which is why your results are inconsistent.

Dynamic string splitting to get the last word [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a challenge question like "What is your favorite movie?". There could be any question like this. I need last word of the question i.e. movie. without question mark.
Try this
String question = "What is your favorite movie";
String lastWord = question .substring(question .lastIndexOf(" ")+1);
When you select the element containing your challenge question, you can call .getText() (in Java; similar in other languages) to get the text inside. Then, you can use regular expressions or substring utilities in your language to strip out the last word.

User input to an array [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
When using C programming language, I have no idea how to put a user input to an array.
I need to get integers from the user in from of:
printf("Enter numbers. Separate each by a comma: ");
How can I put each number into an array?
This is a very helpful link
Also look up this too for clarification on Console.Read & Console.Readline
Difference between Console.Read() and Console.ReadLine()?

Print elements in array? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How can i print from 2nd to last element in array?
You can use array slice,
print #array[1 .. $#array];
using foreach loop to insert newlines,
print "$_\n" for #array[1 .. $#array];
or
print "$array[$_]\n" for 1 .. $#array;

Resources