I have 1 more question can i have a nice output such as wavelength = 1.022727 x 10 ^ -7 instead of wavelength = 6.5454545e-006 and I do not understand what does the "e" mean
e is not the natural logarithm, just in case that is what you are thinking.
e is short for "x10 ^" so 4.5e-3 means 4.5x10^-3. Any scientist, programmer or engineer will understand what you are talking about if you just put "e" so don't worry about that. Therefore I would consider your output to already be nice.
If you want to structure it in another way, I suppose you could do the following:
Now just use output_number whenever you want to display a number in cout. You could also play with these so that the output always has an exponent as a multiple of 3 (engineering notation) which can be useful too.