File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Can any one help me to develop this code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Can any one help me to develop this code" Watch "Can any one help me to develop this code" New topic

Can any one help me to develop this code

Nilesh Raje
Ranch Hand

Joined: Aug 02, 2005
Posts: 153
Non-relativistic particles travelling through a medium lose energy. The energy lost per unit length travelled in the
medium, dE
dx , is given by the formula:
= −
ln E
which depends on the energy of the particle, E, the mass of the particle, m, the velocity of the particle, v, the
atomic number of the medium, ZM, the atomic mass of the medium, AM, and the ionisation potential of the
medium, IM.
The name, ZM and AM values for several media are listed in the URL: and IM is given by the formula :
IM = 16 � 10−6Z0.9
M .
The names and masses of the particles we will consider in this exercise are listed in the URL: This file has the particle�s name
and mass on each line.
The URL:
has a list of material names, particle names and particle energies (E). The particle�s energy, E, is related to the
particles mass, m and velocity v, through E = 1
Using these three URLs, write appropriate classes for both the particle and the material that can be used to
determine which entry in the results.dat file would result in the largest energy loss per unit length.

Thanks and Regards,<br />Nilesh<br />SCJP 1.4, SCWCD 1.4
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

So what have you done so far?

[Jess in Action][AskingGoodQuestions]
Jaime M. Tovar
Ranch Hand

Joined: Mar 28, 2005
Posts: 133
When you have to hand it in?

She will remember your heart when men are fairy tales in books written by rabbits.<br /> As long as there is duct tape... there is also hope.
I agree. Here's the link:
subject: Can any one help me to develop this code
It's not a secret anymore!