Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The program I'm using is MIPS (mars) assembly. Please try to keep it as basic as possible, without using functions or anything like that. Also,

The program I'm using is MIPS (mars) assembly. Please try to keep it as basic as possible, without using functions or anything like that. Also, comments would be really helpful as well. Thank you.

Write a program that prompt the user to input n numbers(0

How many number you like to enter: 9

===============================

Enter number 1:10

Enter number 2:20

Enter number 3:30

Enter number 4:40

Enter number 5:50

Enter number 6:60

Enter number 7:70

Enter number 8:80

Enter number 9:90

===============================

The median is:50

===============================

Another example would be:

How many number you like to enter: 6

===============================

Enter number 1:11

Enter number 2:15

Enter number 3:16

Enter number 4:18

Enter number 5:212

Enter number 6:220

===============================

The median is:17

===============================

Another example would be:

How many number you like to enter: 6

===============================

Enter number 1:11

Enter number 2:15

Enter number 3:18

Enter number 5:23

Enter number 6:220

Enter number 7:221

===============================

The median is:20

===============================

In fact, the middle is 20.5 in the last case but since we only deal with integer we get the integer part which is 20.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Systems A 360-degree Approach

Authors: Jawwad ShamsiMuhammad Khojaye

1st Edition

0429531575, 9780429531576

More Books

Students also viewed these Databases questions

Question

Let A : = {k : k N; k Answered: 1 week ago

Answered: 1 week ago

Question

WHAT IS AUTOMATION TESTING?

Answered: 1 week ago

Question

What is Selenium? What are the advantages of Selenium?

Answered: 1 week ago

Question

Explain the various collection policies in receivables management.

Answered: 1 week ago

Question

Lo6 Identify several management development methods.

Answered: 1 week ago