Home Up Feedback Contents Search

 

 

 

Custom Programming Details

 

The process for having a custom program written is relatively simple. The first step is to send specific information for the problem you would like to solve and the data you would like to input and output.  We may already have a program that will do what you need.  If not, we might be able to revise an existing program to give you the input and output configuration you would like.  As you know, there are many choices as to the input and output of a program.  The next step is to let us know exactly how you would like to input data, how you would like to see the output and exactly what you would like done in the program. Include as many formulas as you can for solving the problem.  This will make our job easier because we write programs in a step by step manner so that you can step through the program one line at a time to see equation execution in the order it is being performed. 

 

Step by step programming allows you to see not only the solution but also proof of how you obtained the solution.  The sequence of execution can be written down as the program executes each line of code showing the equations and the answers.  This gives us the proof we need as engineers for the solutions we provide.  All software that is to be used by engineers should be tested with known data.  No solution should ever be provided without proof.  Being able to step through program execution one line at a time allows you to prove the answers the program provides. This is why we try to write all programs in a simple straight forward way that is similar to solving the problem “by hand”. 

 

Programs that were written in languages such as fortran or C can often be converted to run on the HP calculator. We can take almost any program that was written on a spreadsheet and convert it to run on the HP calculator.   If there are any programs that you would like to have written or if there are any programs that you already own and would like to have customized, please contact us. 

 

 

Custom Programming Benefits

bullet

Programs designed for your specific needs

 

bullet

Input and output data the way you want to see it

 

bullet

Ability to step through program execution line by line

 

bullet

Your custom programs in a handheld calculator

 

Example Program

 

This is a simple program for designing a rectangular concrete beam with steel reinforcement.  The input program is called "INPUT.BEAM", the main program is called "BEAM" and the output is simply tagged  "ŲMn" in kips per foot.  The program "BEAM" also uses another program called "BAR.AREA" that has not been shown here.

 

 

INPUT.BEAM

    «

"ENTER COMPRESSIVE

STRENGTH OF CONCRETE

fc  (ksi)"

"" INPUT OBJ¨

"ENTER YIELD STRENGTH

OF STEEL

fy  (ksi)"

"" INPUT OBJ¨

"ENTER NO. OF BARS

NB"

"" INPUT OBJ¨

"ENTER BAR SIZE

 BS"

"" INPUT OBJ¨

"ENTER WEB WIDTH

bw  (in)"

"" INPUT OBJ¨

"ENTER EFFECTIVE DEPTH

d  (in)"

"" INPUT OBJ¨

    »

BEAM

    « INPUT.BEAM .9

¨ fc fy NB BS b d Ų

      « BS BAR.AREA

NB * "As" ¨TAG HALT

¨ As

        « 'As*fy/(

.85*fc*b)' EVAL ¨ a

          « 'As*fy*

(d-a/2)' EVAL ¨ Mn

            « fc

ß1. ¨ ß1

              « 'a/

ß1' EVAL ¨ c

« '.003*((d-c)/c)'

EVAL ¨ “s

  « “s "“s" ¨TAG '

fy/29000' EVAL ¨ “y

    «

      IF '“s>“y'

      THEN

"“s>“y ¨¨ fs=fy

STEEL YIELDS

UNDER-REINF.

ACI CODE OK"

MSGBOX

      ELSE

"“s‰“y  fs‹fy

STEEL DOES NOT

YIELD

REDUCE As or

INCREASE fc"

MSGBOX

      END '.85*ß1*

fc/fy*87/(87+fy)'

EVAL ¨ —b

      « 'As/(b*d)'

EVAL ¨ —

        « — "—"

¨TAG

          IF '—‰.75

*—b'

          THEN

          ELSE

"—>—b & fs<fy

COMPRESSION

FAILURE"

MSGBOX

          END 'Ų*Mn

/12' EVAL '1_ft*kip

' ¨UNIT "ŲMn" ¨TAG

 

 

 

HP48 & HP49 HEWLETT PACKARD CALCULATOR PROGRAMS
Copyright © 2004 HOGAN & ASSOCIATES, INC.