Re: HP 48 "RULES" Message #12 Posted by Andrés C. Rodríguez (Argentina) on 19 Apr 2001, 8:22 a.m., in response to message #11 by Juan J
Juan: Thank you for your advice. I am rather busy right now, so I am not putting much time on the HP 48. I hope that in a few weeks I will be able to do my homework on it.
Part of my troubles may seem to do with the fact that the HP 48 is sold in Argentina with an spanish language manual that I suspect is not as complete as a full US version. There is no complete list of all functions and the programmnig chapter only addresses the looping constructs. Almost no examples are given...
I would like how to make a program that, say, does the following:
Initialization:
Main_Counter=0; reset main counter
D:=0; reset accumulator
Upper_Limit:=10; set loop maximum iterations
Main_loop:
Input A
Input B
Calculate C:=A+B
Accumulate D:=D+C
Output C,D; formatted as "The answers are ";C,D
main_counter:=main_counter+1; increment main_counter
IF main_counter < upper_limit THEN main_loop ELSE stop; test main counter against upper_limit
I apologize for the example roughness, on purpose I have not used Do-While or For-Next just to make it a little more involved... I think such an example may help me to understand the differences betweeen HP 41 and HP 48 programming.
Thank you again
Andrés
|