(Physics) The energy, E, of a photon can be determined by using this formula:
E is the energy of the photon.
h is known as Planck's constant and has the value 6.6256 × 10-34 Joules/sec.
c is the speed of light, which is 299,792,458 m/s.
λ is the wavelength of the light in meters.
a. Determine the units of a photon's energy, E, by calculating the units resulting from the right side of the formula.
b. Determine the energy of violet light, which has a wavelength of 5.9 × 10-6 meters.
c. If you were required to write a computer program to determine the energy of a photon of different light wavelengths (such as red, green, and so forth), what inputs, outputs, and algorithm would you use?