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

Can someone help me with this code please!!! Write a program called trigtable.f9

ID: 3585911 • Letter: C

Question

Can someone help me with this code please!!!

Write a program called trigtable.f95 that creates (prints to the console) a nice table of the values of sine, cosine, tangent, secant, cosecant, and cotangent at all even degree multiples of 108 and 15 between 0 and 3609 (The mod function may be useful here.) You may do this using arrays or without, depending on your preference. The table should have a header row and a separator row. The angle should be shown as an integer in a width 4 field and each trigonometric value in the table should have width 8 with 4 digits to the right of the decimal place. Some functions will give infinite results for certain angles, so check and print INF for those results. Below is the output for the first 90°. t sin(t) cos(t) tan(t) sec(t) csc (t) cot (t) INF 0.1736 0.9848 0. 1763 1.0154 5.7588 5.6713 0.2588 0.9659 0.2679 1.03533.8637 3.7321 0.3420 0.9397 0.3640 1.0642 2.9238 2.7475 0.5000 0.8660 0.5774 1.1547 2.0000 1.7321 0.6428 0.7660 0.8391 1.3054 1.5557 1.1918 0.7071 0. 7071 1.0000 1.4142 1.4142 1.0000 50 0.7660 0.6428 1.1918 1.5557 1.3054 0.8391 0.8660 0.5000 1.7321 2.0000 1.1547 0.5774 0.9397 0.3420 2.7475 2.9238 1.0642 0.3640 0.9659 0.2588 3.7321 3.8637 1.0353 0.2679 0.9848 0.1736 5.6713 5.7588 1.0154 0.1763 INF 1.0000 0.0000 0.0000 1.0000 0.0000 1.0000 INF 0 10 15 20 30 40 45 60 70 75 80 90 1.0000 0.0000 INF

Explanation / Answer

# include # include # include void main() { float r ; int i ; char ch ; clrscr() ; printf("- - - - - - - - - - - - - - - - - -") ; printf(" Angle Sin Cos Tan Sec csc cot ") ; printf("- - - - - - - - - - - - - - - - - -") ; for(i = 0 ; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote