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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education