Arif Emre E. answered 05/04/19
PhD in Physics with 15+ years of Teaching Experience
The energy of a photon is given as E = h c / λ . where h is the Planck's constant, c is the speed of light and λ is the wavelength of the photon in the medium. The wavelength of the photon depends on the refractive index of the medium as
λ = λo / n where λ0 is the wavelength of the photon in vacuum (n=1). So, in this problem the wavelength of the photon can be found as
λ = 545 nm / 2 = 272.5 nm
As a very useful relation, the product of h and c is given as hc= 1241.5 eV nm . Then, for the energy we have,
E = 1241.5 (eV) (nm) / 272.5 (nm) ≈ 4.56 eV