Question: C++ (C) Write a C program to compute the wavelength for a frequency (integer) value you choose. Display the result using printf command. You should
(C) Write a C program to compute the wavelength for a frequency (integer) value you choose. Display the result using printf command. You should define the velocity of light C=3*1010 cm/sec using preprocessor directives (i.e. define). wavelength = c/frequency (D) Write a C program that has integer identifiers 11 and 12 (wavelengths), a constant identifier at (value, 3.14), three double variables y ,y2 and y and a constant c (value 3* 10 m/s). Assign 380 nm and 600 nm to li and 12 respectively. (1 nm = 10-meter) Compute the following at time 10-14 seconds. Y1 = 3sin ((2 * T * ) *time) Y2 = 5sin(( y=yu+y2 Display yl and y2 and computed value of y in different lines. Be sure to include enough text to describe content of each line in the output. You will need to include the math library
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
