Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: I need help to make a java code that finds the median value in a list of values

  1. #1
    Junior Member
    Join Date
    Mar 2014
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I need help to make a java code that finds the median value in a list of values

    I need help with a simple Java program for finding the median value in a list of values with the following requirements:
    • Create an array with an even number of values in it (an odd number of values is little bit trickier, so if you want a challenge, do it for either an even or odd number of values)
    • Find the value with an equal number of values greater than the value as there are values less than the value
    • Your solution must not require a sorted list of values • Output the median value
    This assignment is intended to get you to demonstrate basic knowledge of arrays, and to create methods with both input and output.


  2. #2
    Member
    Join Date
    Oct 2013
    Location
    Manila, Philippines
    Posts
    285
    My Mood
    Amused
    Thanks
    6
    Thanked 64 Times in 61 Posts

    Default Re: I need help to make a java code that finds the median value in a list of values

    So what have you tried now?
    do you already have a code for that requirement?
    if you have code, please paste it here and ask specific questions.
    because in this forum, members will not create or provide a code for you.
    just make an effort and if there is an error or something wrong with the output, we will assist you.

Similar Threads

  1. Iterative quick sort using median of three values
    By omfgz in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 30th, 2012, 09:59 PM
  2. Replies: 2
    Last Post: September 29th, 2012, 07:42 PM
  3. Replies: 2
    Last Post: August 30th, 2012, 03:26 AM
  4. Replies: 1
    Last Post: November 6th, 2011, 09:48 PM
  5. How to make Java determine if a values is an integer or not.
    By MiniatureBeast in forum Object Oriented Programming
    Replies: 5
    Last Post: August 17th, 2011, 11:32 PM