Help......Anyone???
[ Follow Ups ] [ Post Followup ] [ Message Board for Team 27297 ]

Posted by kgbros on January 19, 19100 at 07:33:23:

I'm trying to write a pascal code for the following question, however I can seem to figure out how to structure the code to produce the results needed.
Can anyone help.

Here is the Question.

The program must simulate the movements of radioactive particles in a 20x20 foot two dimensional shield around a reactor. Particles enter the shield at some random position in the shield coordinate space. Once a particle enter the shield, it moves one foot per second in one of four(4) direction. The direction for the next second of travel is determined by a random number between 1 and 4( forward, backward, left, right).1 A change in direction is interpreted as a collision with another particle which result in the dissipation of energy. each particle can have only a limited number of collisions before it dies. A particle exists the shield if its position places it outside the shield coordinate before k collisions occurs. determine the percentage of particles that exit the shield, where k and the number of particles are imput as data items.Also compute the average numbers of times a particle's path crosses itself during travel time within the shield.

Can anyuone guide me on the right path to solving this problem?

Thank you.
kg.



Follow Ups:



Post a Followup

Name:
E-Mail:
Subject:
Comments:
Optional Link URL:
Link Title:
Optional Image URL:

Sorry, we are no longer accepting entries to this message board.


[ Follow Ups ] [ Post Followup ] [ Message Board for Team 27297 ]