Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I know how to write the program, but I don\'t know how to use the exponents in t

ID: 440958 • Letter: I

Question

I know how to write the program, but I don't know how to use the exponents in the program and how will the user enter the values. Write a program that prompts the user for a wavelength value or a frequency and prints a description of the corresponding part of the electromagnetic spectrum, as given below. You must use if and switch statements. Electromagnetic Spectrum Type Wavelength (m] Frequency(Hz] Radio Waves >=10^-1 <3 x 10^9 Microwaves [10^-3 , 10^-1) [3 x 10^9 , 3 x 10^11 ) Infrared [7 x 10^-7 , 10^-3 ) [3 x 10^11 , 4 x 10^14) Visible light [4 x 10^-7 , 7 x10^-7) [4 x 10^14 , 7.5 x 10^14) Ultraviolet [10^-8 , 4 x 10^-7) [7.5 x 10^14 , 3 x 10^16) X-rays [10^-11 , 10^-8) [3 x 10^16 , 3 x 10^19) Gamma Rays <10^-11 >=3 x 10^19

Explanation / Answer

exponential and logarithmic functions included in math.h library : u can use it from their for reference : http://www.cplusplus.com/reference/cmath/ check them..