This preview shows page 1. Sign up to view the full content.
Unformatted text preview: write "no prices entered - program ends" endif else for x = 1 to count -1 for y = x+1 to count if price(x) > price(y) then set temp = price(x) set price(x) = price(y) set price(y) = temp endif else next y next x set z = count/2 if mod(z) = 0 then Median = (price(z)+price(z+1))/2 else Median = price(int(z+1)) Write, The median price of homes in Botany Bay during 2002 was: Median endif...
View Full Document
This note was uploaded on 01/15/2012 for the course IT 210 210 taught by Professor Professory during the Spring '10 term at University of Phoenix.
- Spring '10