(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

Write an algorithm in pseudocode that allows the user to input the selling prices of all homes at Kingston sold during 2009 and determine the median selling price. The median of a list of N numbers is as follows:

the middle number of the sorted list, if N is odd

the average of the two middle numbers in the sorted list if N is even.

The user will terminate the input by entering a zero or a negative number.

2. Relevant equations

3. The attempt at a solution

i cant imagine how to do it? i think there should be some arrays involved. any ideas?Code (Text):

Declare Counter as integer

Declare Number as float

Set Counter = 0

Set Number = -1

Display "Enter a number. Enter a zero or negative number to finish"

WHILE Number > 0

?????

ENDWHILE

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: Finding middle numbers in pseudocode

**Physics Forums | Science Articles, Homework Help, Discussion**