Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In this project, you write a MIPS code to 1) allow users to input a sequence of

ID: 3762622 • Letter: I

Question

In this project, you write a MIPS code to

1) allow users to input a sequence of float point numbers (single precision number).

2) output the max, min, and median of these numbers. Your code should allow the users to input the float point number one by one, until a special number 0.0, which indicates the end of the input and should not be counted as the input number.

Example:

Next input integer: -1.0

Next input integer: 2.1

Next input integer: 3.2

Next input integer: 0.0

Max is: 3.2

Min is: -1.0

Median is: 2.1

If there are even number of inputs, there are two input numbers neighboring in the median position. You should output the average of them as the median in this project.

For example:

Next input integer: -1.5

Next input integer: 5.3

Next input integer: 2.4

Next input integer: 4.4

Next input integer: 0.0

Max is: 5.3

Min is: -1.5

Median is: 3.4

Your code must be compiled and tested in the MARS

Explanation / Answer

Answer :

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote