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

I need part b only nota a) use a white loop to write a program that will print o

ID: 3613688 • Letter: I

Question

I need part b only nota

a)
use a white loop to write a program that will print outa table of sine and cosine values for angles between 0 and 360degrees increments. Remember that the C functions sin and cos onlytake radian arguments. Calculated values should be printed out tofour decimal places and the table should have the followingformat.                               Tableof Trig Functions                           Angle(deg)    sin          cos                            0                 .0000      1.0000                              15                .2588      .9659                               30              .5000      .8660                               .                  .             .                                 .                  .             .                               345             -.2588    .9659                               360               .0000      1.0000                  Turn a copy of the source code with the output copied ontoit.
b)
Modify your program from part a to include anadditional column in which the tangent of each angle is displayed.This time have your loop built using the for loop structure.The tangent of certain angles is undefined. Your program shouldavoid calculating tangent in these cases (it would crash if youtried) and should print the word undef. in the tangent columninstead of a value. As in part a, turn in a copy of the source codewith the output copied onto it. I need part b only nota

a)
use a white loop to write a program that will print outa table of sine and cosine values for angles between 0 and 360degrees increments. Remember that the C functions sin and cos onlytake radian arguments. Calculated values should be printed out tofour decimal places and the table should have the followingformat.                               Tableof Trig Functions                           Angle(deg)    sin          cos                            0                 .0000      1.0000                              15                .2588      .9659                               30              .5000      .8660                               .                  .             .                                 .                  .             .                               345             -.2588    .9659                               360               .0000      1.0000                  Turn a copy of the source code with the output copied ontoit.
b)
Modify your program from part a to include anadditional column in which the tangent of each angle is displayed.This time have your loop built using the for loop structure.The tangent of certain angles is undefined. Your program shouldavoid calculating tangent in these cases (it would crash if youtried) and should print the word undef. in the tangent columninstead of a value. As in part a, turn in a copy of the source codewith the output copied onto it.

Explanation / Answer

please rate - thanks #include #include #include int main() {int deg=0; double rad; double convfact=(22./7.)/180.; printf("Angle(deg)    sin   cos "); while(deg