CSCI 112
Lab 7 - Enumerated Type and Function Parameters


Objectives:


Readings:


Deliverables: (DUE: Midnight on March 9th, 2013)


TO DO (for this lab)

Please choose an option from the menu below by entering a number from 0 to 3 (enter 3 to exit this program).

 

(0) Sine

(1) Cosine

(2) Tangent

(3) QUIT

Please choose an option from the menu below by entering a number from 0 to 3 (enter 3 to exit this program).

 

(0) Sine

(1) Cosine

(2) Tangent

(3) QUIT

 

The value that was entered is: 0

sin(0.00) = #.##

sin(15.00) = #.##

sin(30.00) = #.##

sin(45.00) = #.##

sin(60.00) = #.##

sin(75.00) = #.##

sin(90.00) = #.##

 

Please choose an option from the menu below by entering a number from 0 to 3 (enter 3 to exit this program).

 

(0) Sine

(1) Cosine

(2) Tangent

(3) QUIT

 

The value that was entered is: 1

cos(0.00) = #.##

cos(15.00) = #.##

cos(30.00) = #.##

cos(45.00) = #.##

cos(60.00) = #.##

cos(75.00) = #.##

cos(90.00) = #.##

 

Please choose an option from the menu below by entering a number from 0 to 3 (enter 3 to exit this program).

 

(0) Sine

(1) Cosine

(2) Tangent

(3) QUIT

 

The value that was entered is: 2

tan(0.00) = #.##

tan(15.00) = #.##

tan(30.00) = #.##

tan(45.00) = #.##

tan(60.00) = #.##

tan(75.00) = #.##

tan(90.00) = UNDEFINED

 

Please choose an option from the menu below by entering a number from 0 to 3 (enter 3 to exit this program).

 

(0) Sine

(1) Cosine

(2) Tangent

(3) QUIT

 

The value that was entered is: 3

The program finished its run. Thank you.

 

LAB 7 BONUS (5 extra points are available!)

lab07-Stub.GIF