From: rockyluc2000 on
Hello
I am New to programming and the hp 49g+ calculator.
I'm Trying to write what I thought would be a very simple progam when
you are asked to input objects then your prompted with a choose box
and depending upon what you choose the calculator would make the
appropriate calculation depending upon your choice.


I'm a machinist and
Trying to figure out the number of revolutions required given a
specifed depth
and if its an english thread say 10/32 by .300 deep
I would multiply the pitch by the depth 32* .300 would give me 9.6
revolutions
and if the thread were Metric Say M4 x .700 by .300 deep
I would divide 25.4/.7=36.28571*.300=10.885 turns
I guess I am really trying to figure out how to use the choose box
From: Jacob Wall on
On Dec 29, 9:12 pm, rockyluc2...(a)yahoo.com wrote:
> Hello
> I am New to programming and the hp 49g+ calculator.
> I'm Trying to write what I thought would be a very simple progam when
> you are asked to input objects then your prompted with a choose box
> and depending upon what you choose the calculator would make the
> appropriate calculation depending upon your choice.
>
> I'm a machinist and
> Trying to figure out the number of revolutions required given a
> specifed depth
> and if its an english thread say 10/32 by .300 deep
> I would multiply the pitch by the depth 32* .300 would give me 9.6
> revolutions
> and if the thread were Metric Say M4 x .700 by .300 deep
> I would divide 25.4/.7=36.28571*.300=10.885 turns
> I guess I am really trying to figure out how to use the choose box

Hello,

If you have not done so already download the Advanced User Reference
Manual from http://www.hpcalc.org/details.php?id=6374 or directly from
HP, page 69/653 and on shows examples for CHOOSE and INFORM. But
regardless I'll try to suggest one route, for example, try the
following:

<< "CHOOSE THREAD"
{ { "ENGLISH" ENGTHR } { "METRIC" METTHR } } 1 CHOOSE
IF THEN EVAL
END
>>

Where "CHOOSE THREAD" would be the title for the choose box,
"ENGLISH" and "METRIC" your choices within the choose box,
ENGTHR a program to be executed if "ENGLISH" is chosen, and
METTHR a program to be executed if "METRIC" is chosen.

Alternatively you could replace ENGTHR and METTHR simply with
numbers like 1 and 2, then use a test later in the program.

Hope any of this helps.

Jacob