Search:

Type: Posts; User: Zaphod_b

Search: Search took 0.09 seconds.

  1. Replies
    10
    Views
    2,407

    Re: Benford's Law Computer assignment!

    That the way that I see it.

    Well, I might word it a little differently:

    Proportion of the total for a particular digit = (Number of items for which that digit is the leading digit)/(Total...
  2. Replies
    10
    Views
    2,407

    Re: Benford's Law Computer assignment!

    If I understand your question, the answer is yes:



    double [] whatever; // That's all you need; the generateBenfordNumbers() method will fill it in;

    // Use the static method from the...
  3. Replies
    10
    Views
    2,407

    Re: Benford's Law Computer assignment!

    I agree that this is a terrific assignment!

    It gives the opportunity to learn about applying Java in the investigation of a really interesting real-world concept (above and beyond Java syntax). ...
  4. Replies
    10
    Views
    2,407

    Re: Benford's Law Computer assignment!

    Have you tested the code that you have so far?

    Can you tell us exactly what part of Question 4 you are stuck on?

    The helper method that was suggested could go something like this:

    Think of...
Results 1 to 4 of 4