Calculate the median of an array

Assignment Help Basic Computer Science
Reference no: EM13163534

Calculate the median of an array in mips, the array needs to use floating point numbers not integers.

The output should look something like this were you enter numbers in and it prints the array and prints the median.

Enter a number:
3.2
Enter a number:
6.43
Enter a number:
-3.23
Enter a number:
4.32
Enter a number:
4.3
Enter a number:
-23.4
Enter a number:
-5.4
Enter a number:
3.0
Enter a number:
4.0

The array contains the following:
3.20000005
6.42999983
3 of 4
-3.23000002
4.32000017
4.30000019
-23.39999962
-5.40000010
3.00000000
4.00000000
The number is 3.20000005

Reference no: EM13163534

Questions Cloud

State when this substance contacts the moisture in eyes : In the 1980s, there was an international agreement to destroy all stockpiles of mustard gas, ClCH2CH2SCH2CH2Cl. When this substance contacts the moisture in eyes, nasal passages, and skin
The function take optional arguments, theta, alpha, beta : the function tverskySim (found in problem4/tverskySim.m) takes optional arguments, theta, alpha, beta where theta is the weight assigned to the common features between a and b, alpha is the weight for the distinctive features of a, and beta is the we..
What is the substance : a liquid unknown was found to be inslouble in water & soluble in cyclohexane & alcohol; the unknown was found to have a boiling point of 58 degress celsius at 670mm Hg. What is the substance? What could you do to confirm your answer?
State amount of arsenic trichloride and the rest inerts : A 1.348 gram sample containing an unknown amount of arsenic trichloride and the rest inerts was dissolved into a NaHCO3 and HCl aqueous solution.
Calculate the median of an array : Calculate the median of an array in mips, the array needs to use floating point numbers not integers.The output should look something like this were you enter numbers in and it prints the array and prints the median.Enter a number
Explain what is the relative kinetic energy : What is the relative kinetic energy between the electron and proton after ionization, that is r=infinity? C) Assume that the electron has all the kinetic energy in part
Define hz is a weak acid : HZ is a weak acid. An aqueous solution of HZ is prepared by dissolving 0.020 mol of HZ in sufficient water to yield 1.00 L of solution
Discuss the revenue principle and the matching principle : Discuss the revenue principle and the matching principle as per the generally accepted accounting principles (GAAP) and contrast the percentage-of-completion method of revenue recognition versus the completed contract method.
What is the mass in grams of the lead : The water level in a graduated cylinder initially at 216 rises to 287 after a piece of lead is submerged. What is the mass in grams of the lead?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Performance of computer if main memory speed remains same

Using a faster processor chip result in corresponding increase in performance of computer even if main memory speed remains the same.

  Explain checksum detect all errors caused by odd number

Let the 32-bit hash function defined as concatenation of two 16-bit functions: XOR and RXOR. Will this checksum detect all errors caused by odd number of error bits? Describe.

  Calculate and plot value for inter-arrival time

Assume instead that there is constant inter-arrival time of 0.01 seconds between each consecutive arriving packet. In this case, calculate and plot value of R_tau (t) versus time in steady state for following cases: (i) tau = 0.1 second, (ii) tau..

  Impact of activities called ping sweeps and port scans

Your boss has just heard about some nefarious computer activities called ping sweeps and port scans. He wants to know more about them and what the impact of these activities might be on your company.

  Explain johnson-johnson-s approach for it infrastructure

Discuss Johnson & Johnson's Approach ro providing an IT infrastructure to support its one-face-to-the-customer strategy?

  Describe alternate paths or actions in bank-s account

Describe alternate paths or actions that could have been taken, and why those alternate actions would have been ethical or not.

  Keyboard combinations that can increase

Microsoft® Word provides keyboard combinations that can increase a user's efficiency. How can these shortcuts simplify the support process for Microsoft® Word

  How to make system more user-friendly

What improvements or additions to the system do you believe would advantage you or make system more user-friendly? Why?

  Determining most effective it projects

Not sure what will suit their requirements in achieving better organization between branches by updating their information systems. What will you suggest they do to find out most effective IT projects?

  String s of lowercase english letters

Given a string S of lowercase English letters, write a program to find the longest magic string than can be obtained by removing some letters of S. If there are more than one solutions, choose the longest magic string which is lexicographically small..

  Write organizational factors for benefits of new information

Write three organizational factors which can prevent a firm in completely realizing benefits of new information system, and give examples for each.

  Let''s try to make inheritance

Let's try to make inheritance a little less abstract and a little bit more concrete. In order to do this, we will model a simple inheritance relationship

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd