//Example 29.7 lambda=0.167*10^-9;//de Broglie wavelength (m) h=6.63*10^-34;//Planck's constant (J.s) m=9.11*10^-31;//Mass of an electron (kg) v=h/(m*lambda);//Electron's velocity (m/s) printf('a.Velocity of the electron = %0.2e m/s',v) KE=(1/2)*m*v^2;//Kinetic energy (J) KE=KE*1/(1.602*10^-19);//Kinetic energy (eV) printf('\nb.Kinetic energy of the electron = %0.1f eV',KE) //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest