Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can someone olease help do this in putty program in c. The program will print a table of trigonometric values from 0 to 360 degrees

can someone olease help do this in putty program in c.
image text in transcribed
image text in transcribed
image text in transcribed
The program will print a table of trigonometric values from 0 to 360 degrees in increments selected by the uscr. Requirements Create the C program trigTable.c in the p03 directory. Use the format including justification, numeric format and words as displayed in the Example of Output. The program will contain 2 functions, main and displayTriTab. The description of each is below. main This functon will: - Will receive nothing and return an integer - Display a the welcome message followed by a blank line - Displays a message that indicates what the program will do followed by a blank line. - Ask the user for the number of degrees to use for increment in the table. - Display blank line - Call the displayTrig with the inerement degrees received from the user - Display blank line - Display a thank you message. - Return a value of 0 This functon will: - Receive an integer called degrees that represents the number of degree for incrementation and return nothing. - Display the heading "--TRIGONOMETRIC TABLE .-" center over the table - A blank line - Display the column headings as sown on the output. - A blank linc. - 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 cntered would not normally allow that to happen. Hint: You may need the functions: sin0 cos0tan0. These math functions expect to receive radians not degrees. ample of Output Welcome to trigTable. This program will print a table of trigonometric values from to 360 degrees in increments selected by the user. Please the select the number of degrees for the increment: 30

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions