SURFACE AREA AND VOLUMES

 EXPLORATION TITLE
 10-6 CREATING A TOOLBAR TO REFERENCE FORMULAS

 

EXPLORATION 10-6. CREATING A TOOLBAR TO REFERENCE FORMULAS

Objective: Write a program that create a toolbar to reference lateral area, surface area, and volume formulas.

1. Enter a New Program

Press APPS and choose 7:Program Editor > 3:New. Save the file in the main directory folder your name as the variable, and press ENTER twice as shown below.

2. You are now in the programming entry screen when your screen matches the diagram to the right (replace your name with george).

The program that you are about to create will set a custom title bar where you can access geometry formulas.

 

 

3. Press F2 Control and choose 7:Custom...EndCustm. The program contains a block of statements between "Custom" and "EndCustm." Each of those statements is either a "Title" (of a pull-down menu) or "Item" (entry in a pull-down menu) statement.

4. Create each Title by pressing F3 I/O and choose 1:Dialog > 7:Title (or type the word Title), and then type "Prism". Press ENTER to move to the next line.

Repeat this procedure for Cylinder, Pyramid, Cone, and Sphere, as shown to the right.

5. Check the status of your program by pressing DIAMOND Q to return to the home screen. Type the name of the program with parenthesis, yourname(), press ENTER until the screen reads "Done," (as shown below to the left) and press 2nd 3 to activate the custom toolbar (as shown below to the right). Notice how the toolbar changes at the top of the screen. Press 2nd 3 to return to the original title bar.

 

6. The next step will include the items in the pull down menu. Press APPS and choose 7:Program Editor >1:Current to return to your program. Move the cursor to the right of "Prism" and press ENTER to create a new line as shown below to the left.

 

7. Create a listing by pressing F3 I/O and choose 1:Dialog > 8:Item (or type the word Item). Type "LA = ph." Press ENTER to advance to the next line and make the lists SA = LA + 2B and V=Bh, as shown above to the right.

8. Go back to the main screen, re-enter the program name, and look at the custom menu. Press F1 to view the prism formulas you have just entered.

9. Your goal is to finish the toolbar until there are formulas under each menu. Your formulas should be as specific as possible. For example, the volume of a cylinder should not be V=Bh, but instead V=r^2h, because you can substitute r^2 for B, the area of the base.

Go back to the program and start with the next Item under the Cylinder Title. When you have completed the program, try it out. There should be a total of 14 formulas.

 

 



These activities have been designed by Evan Glazer at the University of Georgia, and Phil Gartner at Glenbrook South High School in Glenview, IL. These resources should only be used for nonprofit purposes. Contact eglazer@coe.uga.edu or pgartner@glenbrook.k12.il.us if you have questions or comments.

Last revised: June 1999