displayTriTab This functon will: • Receive an integer called degrees that represents the number of degree for incrementation and return nothing. Display the heading “-- A blank line Display the column headings as sown on the output. • A blank line. Produce a table based from 0 to 360 degrees in increments based on the users input. The table columns will be as follows: 1. Degrees (Format: Right justified, no decimal places) TRIGONOMETRIC TABLE 2. The radian value for the number of degrees in column 1 3. The sine value for the degrees in column 4. The cosine value for the degrees in column The tangent value for the degrees in column 5. -"center over the table 6. Tangent values for 90 and 270 will be infinity • The 360 degrees row will always be the last row even if the increment value entered would not normally allow that to happen. Hint: You may need the functions: sin() cos() tan() These math functions expect to receive radians not degrees. You may need to review documentation for math.h

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter9: Getting Started With Javascript: Creating A Countdown Clock
Section: Chapter Questions
Problem 8CP4
icon
Related questions
Question

Kindly add Comments for this 03 assignment

displayTriTab
This functon will:
• Receive an integer called degrees that represents the number of degree for incrementation and
return nothing.
Display the heading "---
TRIGONOMETRIC TABLE
A blank line
Display the column headings as sown on the output.
A blank line.
---"center over the table
• Produce a table based from 0 to 360 degrees in increments based on the users input.
The table columns will be as follows:
1. Degrees (Format: Right justified, no decimal places)
2. The radian value for the number of degrees in column 1
3. The sine value for the degrees in column
4.
The cosine value for the degrees in column
5. The tangent value for the degrees in column
6. Tangent values for 90 and 270 will be infinity
The 360 degrees row will always be the last row even if the increment value entered would not
normally allow that to happen.
sin()
cos()
tan()
Hint: You may need the functions:
These math functions expect to receive radians not degrees.
You may need to review documentation for math.h
Transcribed Image Text:displayTriTab This functon will: • Receive an integer called degrees that represents the number of degree for incrementation and return nothing. Display the heading "--- TRIGONOMETRIC TABLE A blank line Display the column headings as sown on the output. A blank line. ---"center over the table • Produce a table based from 0 to 360 degrees in increments based on the users input. The table columns will be as follows: 1. Degrees (Format: Right justified, no decimal places) 2. The radian value for the number of degrees in column 1 3. The sine value for the degrees in column 4. The cosine value for the degrees in column 5. The tangent value for the degrees in column 6. Tangent values for 90 and 270 will be infinity The 360 degrees row will always be the last row even if the increment value entered would not normally allow that to happen. sin() cos() tan() Hint: You may need the functions: These math functions expect to receive radians not degrees. You may need to review documentation for math.h
Example of Output
Welcome to trigTable.
This program will print a table of trigonometric values
from 0 to 360 degrees in increments selected by the user.
Please the select the number of degrees for the increment: 30
Degrees Radians
0
30
60
90
120
150
180
210
240
270
300
330
360
0.0000
0.5236
1.0472
1.5708
2.0944
2.6180
3.1416
3.6652
4.1888
4.7124
5.2360
5.7596
6.2832
TRIGONOMETRIC TABLE
sine
0.0000
0.5000
0.8660
1.0000
0.8660
0.5000
0.0000
-0.5000
-0.8660
-1.0000
-0.8660
-0.5000
-0.0000
cosine tangent
1.0000
0.8660
0.5000
0.0000
-0.5000
-0.8660
-1.0000
-0.8660
-0.5000
-0.0000
0.5000
0.8660
1.0000
Thank you for using trigTable. Bye!
0.00000
0.57735
1.73205
infinity
-1.73205
-0.57735
-0.00000
0.57735
1.73205
infinity
-1.73205
-0.57735
-0.00000
Transcribed Image Text:Example of Output Welcome to trigTable. This program will print a table of trigonometric values from 0 to 360 degrees in increments selected by the user. Please the select the number of degrees for the increment: 30 Degrees Radians 0 30 60 90 120 150 180 210 240 270 300 330 360 0.0000 0.5236 1.0472 1.5708 2.0944 2.6180 3.1416 3.6652 4.1888 4.7124 5.2360 5.7596 6.2832 TRIGONOMETRIC TABLE sine 0.0000 0.5000 0.8660 1.0000 0.8660 0.5000 0.0000 -0.5000 -0.8660 -1.0000 -0.8660 -0.5000 -0.0000 cosine tangent 1.0000 0.8660 0.5000 0.0000 -0.5000 -0.8660 -1.0000 -0.8660 -0.5000 -0.0000 0.5000 0.8660 1.0000 Thank you for using trigTable. Bye! 0.00000 0.57735 1.73205 infinity -1.73205 -0.57735 -0.00000 0.57735 1.73205 infinity -1.73205 -0.57735 -0.00000
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
JQuery and Javascript
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning