Make a java program that will accept 10 int as an array[10] index=10
and find the following using these methods

find the mode

public int mode()
{


}

find the mean

public double mean()
{

if even add the two median..


}


find the median

public double median()
{


}

thanks a lot..

No. Why should I?

I guess you missed the bit at the head of the main forum listing where it says

We'll help you get started and exchange algorithm ideas, but only if you show that you're willing to put in effort as well.

I guess you missed the bit at the head of the main forum listing where it says

thanks a lot....

thanks a lot....

That sounds like sarcasm, which I don't deserve. Read the forum rules. If you make an effort i WILL help you.

I have quite a few ideas, but more importantly - what are yours and how much effort have you put into this?

Do you know the math for finding means and medians? That is the place to start ;)

Here's a start for you

// declare the package

// define the imports

// declare the class

// possibly add some instance and/or class variables

// possibly declare a constructor

    public int mode()
    {
        // add some code for determining the mode
    }

    public double mean()
    {
        // add some code for finding the mean seemingly using the following hint
        //if even add the two median..
    }

    public double median()
    {
        // add some code for finding the median
    }

// end the class definition
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.