Finding the Median

Page 1 of 1

1 Replies - 159 Views - Last Post: 02 October 2012 - 08:35 PM Rate Topic: -----

#1 byron2012  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 02-October 12

Finding the Median

Posted 02 October 2012 - 08:33 PM

I am using a do-while statement for a project. we are to receive 5 names, prices, and discount factors for an 'online store' and then create a menu with options like find the median price, find the average price, find the lowest price.

My question is how do I go about writing the function to call for the median? obviously, I will need to arrange the prices in ascending order and go from there-and this is where I am stuck. I am not sure how to arrange the prices in ascending numerical order.

Is This A Good Question/Topic? 0
  • +

Replies To: Finding the Median

#2 Skydiver  Icon User is online

  • Code herder
  • member icon

Reputation: 3576
  • View blog
  • Posts: 11,124
  • Joined: 05-May 12

Re: Finding the Median

Posted 02 October 2012 - 08:35 PM

This is the same as the other topic you opened. Only open one topic at a time.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1