Thanks! Here is it Finished. (Mabey Just my first Version, But I am a newb, and the is nearly my first program that will be useful...Hopefully)
In the next few week I wanna get some more shapes in there, like Cilinders, and Mabey Octogons, and stuff like that.
Its my "Geometry Caculator Beta v1.0"
Later
Hide Mouse
Quit$=" Press Q to Quit"
FindAreaCircle$=" 1) Find The Area of a Circle"
FindAreaSphere$=" 2) Find The Area of a Sphere"
FindAreaSquare$=" 3) Find The Area of a Square"
FindAreaCube$=" 4) Find The Area of a Cube"
FindAreaTriangle$=" 5) Find The Area of a Triangle"
FindAreaPyramid$=" 6) Find The Area of a Pyramid"
FindAreaCone$=" 7) Find The Area of a Cone"
MadeBy$="Made by Lon(Lonnie) Porter (or F-i-n-a-l-F-a-n)"
ThanksTo$="Big Thanks to CattleRustler"
Defualts:
Pie# = 3.14286
`\\You should add comments throughout your code...
MainLoop:
Do
Gosub ChooseOne
Loop
RETURN
ChooseOne:
CLS
Text 10,20, FindAreaCircle$
Text 10,40, FindAreaSphere$
Text 10,60, FindAreaSquare$
Text 10,80, FindAreaCube$
Text 10,100, FindAreaTriangle$
Text 10,120, FindAreaPyramid$
Text 10,140, FindAreaCone$
Text 10,160, Quit$
Text 250,400, Madeby$
Text 250,420, ThanksTo$
Input "Pick One ",PickedOne
If PickedOne=1 Then Gosub FindAreaCircle
If PickedOne=2 Then Gosub FindAreaSphere
If PickedOne=3 Then Gosub FindAreaSquare
If PickedOne=4 Then Gosub FindAreaCube
If PickedOne=5 Then Gosub FindAreaTriangle
If PickedOne=6 Then Gosub FindAreaPyramid
If PickedOne=7 Then Gosub FindAreaCone
If PickedOne=Q Then End
RETURN
FindAreaCircle:
CLS
Input "Find The Area of a Circle, Please Enter the Radius ",RadiusCircle#
AreaCircle#=(RadiusCircle#^2)*Pie#
Print "The Area of the Circle is ";AreaCircle#
Wait Key
Return
FindAreaSphere:
CLS
Input "Find The Area of a Sphere, Please Enter the Radius ",RadiusSphere#
AreaSphere#=(RadiusSphere#^3)*Pie#
Print "The Area of the Sphere is ";AreaSphere#
Wait Key
Return
FindAreaSquare:
CLS
Input "Find The Area of a Square, Please Enter the Hight ",HightSquare#
CLS
Input "Please Enter The Width ", BaseSquare#
CLS
AreaSquare#=HightSquare#*BaseSquare#
Print "The Area of The Square is ";AreaSquare#
Wait Key
Return
FindAreaCube:
CLS
Input "Find The Area of a Cube, Please Enter the Hight ",HightCube#
CLS
Input "Please Enter Width ",WidthCube#
CLS
Input "Please Enter Depth ", DepthCube#
CLS
AreaCube#=HightCube#*DepthCube#*WidthCube#
Print "The Area of the Cube is ";AreaCube#
Wait Key
Return
FindAreaTriangle:
CLS
Input "Find The Area of a Triangle, Please Enter the Hight ",HightTriangle#
CLS
Input "Enter The Base ", TriangleDepth#
CLS
TriangleArea#=(TriangleDepth#*HightTriangle#)*0.50
Print "The Area of the Triangle is ";TriangleArea#
Wait Key
Return
FindAreaPyramid:
CLS
Input "Find the Area of a Pyramid, Please Enter the Hight ", HightPyramid#
CLS
Input "Enter the Base ", BasePyramid#
CLS
AreaPyramid#=(HightPyramid#*BasePyramid#)/3
Print "The Area of the Pyramid is ";AreaPyramid#
Wait Key
Return
FindAreaCone:
CLS
Input "Find the Area of a Cone, Please Enter the Radius ",RadiusCone#
CLS
Input "Enter the Hight of the Cone ",HightCone#
CLS
AreaCone#=(RadiusCone#^2*Pie#)*HightCone#
Print "The Area of the Cone is ";AreaCone#
Wait Key
Return
Quit:
End
Thanks for all your help CattleRustler!
Do Print "Hello World"
Wait 2003 loop