CS553: A Table with Graphics and Calculations on the Fly


Refer to pages 637 and 638 in your text "Using Math Methods"

Displaying a Table of Trigonometric Functions will be the basis for this lab.

You will create this table FROM SCRATCH (on the fly).

You will use a FOR loop that will calculate the desired values in 15 degree increments as shown on pages 685, 686, and 687.

You will also provide added functionality to your table. Your table will include a column that will display radians (to the left of the degrees column), a column for sin(x), cos(x) and tan(x) function.

The image below reflects a partial view of the output of the table:

Your table will extend to 360 degrees (2PI radians).

Notes for this assignment:

Further, please note:

ALL THE WORK (WITH THE EXCEPTION OF THE TABLE HEADER) IS DONE INSIDE A FOR LOOP. PLEASE DO NOT DEVIATE FROM THIS PART OF THE ASSIGNMENT. HAND CODING FOR INDIVIDUAL TABLE ELEMENTS WILL NOT BE ACCEPTED FOR CREDIT!

Last Updated 8 November, 2010