need help on this problem.



Hello,

I have an assignment for school. I'm looking for help and advise on how
to solve this. My professor is bad, meaning that she
can't explain correctly, her english is bad, and it's one of those
people that expect students to know everything.

well, this is the problem:

On a floor, parallel lines separated of a length L are drawn. When you
launch a pen of length L on this floor, the probability that it crosses
a line is 2/Pi. Suppose that you have a computer that has 64
processors. Write a program to compute Pi in java for that computer.
But run it on your computer.

I went to her to explain me certain things I didn't understand. For
example, the lines are drawn parallel like this:

| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |

and L is the distance between each line. The pen's width (not the
length like she wrote it) is L as well. For the rest, the pen is thrown
at random. So for example, the pen can fall diagonally or vertically or
horizontally.

Does anyone else understand this problem? I don't, that's why I'm
asking for help from anyone that might have a clue. Even after I
visited her her
explainations are bad and don't help at all. I was hoping that someone
can help me guess what I need to do, since I have no clue. I already
spent 2 days on this and I can't come up with anything. I appreciate
anyone reading this.

Thanks.

p.s. and please, i'm not looking for solutions, so please don't start
b.s.ing or bashing the post.

.



Relevant Pages

  • multithreading problem - need help
    ... I have an assignment for school. ... Maybe even someone has a good link to any websource that ... On a floor, parallel lines separated of a length L are drawn. ... the lines are drawn parallel like this: ...
    (comp.programming.threads)
  • Re: BBC1s biggest onscreen next ever
    ... That's not a clue; that's your apparent answer. ... lee at w2designs dot co dot uk ...
    (uk.media.tv.misc)