I have just downloaded Delphi 7 and I want to learn how to build my first application. I installed it using the "Typical" option for components. I have some Perl experience but this is my first with the Delphi program. The application is a calculator that will estimate the weight in carats of a gemstone cut from a particular type of rough in various designs. There is an online version of what I want to do written in Perl found at http://www.amfed.org/faceters/faqs_gem_weight.shtml
The formula for the application is Weight = (Vol./W^3) x (specific gravity) x (width3) / 200.
The "Vol./W^3" will already be known by the user as it it generated by another design program. The value of "Vol./W^3" will be between 0.000 and 1.000.
The specific gravity will be selected from a dropdown list. The stone names and their specific gravity values can be found at http://www.fishhead.com/sg-values.txt
. Note that the values of specific gravity may have a range in value so the calculation of the weight will need to also show a range in weight.
The next value of width (in millimeters) will be entered by the user and that value needs to be cubed.
The last calculation is to divide by 200.
What I want is a window with input boxes like the online link above but I don't need the "Notes" box. Under that have a "Calculate" and "Clear Form" button. Under that I need an output text box where the calculation is displayed. Use the online link above and enter .241 and 12mm to see the output calculation.
I'm starting this out at 500 points because what I need is a step by step tutorial as well as code. I'll be happy to award additional points to anyone adding additional tweaks that will improve the final product or more points to any one expert who gives me the complete package. I'm not sure how to exceed the 500 point limit but we can figure that out I'm sure. Please include suggestions on background colors, heading bar, etc...