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

  Best and least expensive solution for faulty modem port

When troubleshooting a motherboard, you discover the modem port no longer works. What is the best and least expensive solution to this problem?

  Variety of tools that use to prepare project

In this course, you looked at a variety of tools that you would use to prepare a project. Some areas you looked at included, but were not limited to?

  Determine subgame-perfect equilibrium

Targeting again one of the surviving gangsters. Survivors split money equally. Determine subgame-perfect equilibrium.

  Describe happening of water lubrication film under ice skate

Similar reasoning is utilized to describe occurrence of water lubrication film beneath ice skates. Describe your opinion of this explanation?

  Estimate maximum aggregate i-o transfer rate in system

Estimate the maximum aggregate I/O transfer rate in this system. Hint: Only one device at a time can be serviced on a selector channel.

  What bit pattern will be in memory cell

What bit patterns will be in registers 0, 1, and 2 when the machine halts? What bit pattern will be in the memory cell at address 30 when the machine halts?

  K-map to simplify output function using don-t care

Use K-map to simplify output function of x by don't care conditions.

  How can you quickly investigate and collect digital evidence

Prepaid cell phones make forensic investigation much hard. Discuss how can you quickly investigate and collect digital evidence for a crime what involves a phone call.

  Acilisis, lacinia, curabitur egestas

Acilisis, lacinia, curabitur egestas, lorem, risus. Class Ac amet laoreet parturient, quam justo interdum hendrerit erat faucibus, facilisi scelerisque commodo, odio. Ligula conubia potenti, per praesent est egestas felis a facilisis potenti vehicula..

  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 what office automation software works

Create a 2 or more page memorandum explaining what office automation software and group collaboration software are used by people in the organization to accomplish work.

  create a version of a carnival game

assignment, your job is to create a version of a carnival game in which mechanical dogs race along a track. The racing game is called DogTrack. DogTrack is also the name of the java source file you must submit to complete the assignment. The DogTrack..

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